From 529c9b34a726785e43fa8dd712d46e7228f2b9ba Mon Sep 17 00:00:00 2001 From: Stephen Zhou Date: Sat, 7 Jan 2023 12:45:55 +0800 Subject: [PATCH] fix: missing creator id in shortcut cache (#915) fix: missing creatot id in shortcut cache --- store/shortcut.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store/shortcut.go b/store/shortcut.go index 05fa0d69..b56d2efe 100644 --- a/store/shortcut.go +++ b/store/shortcut.go @@ -217,13 +217,14 @@ func patchShortcut(ctx context.Context, tx *sql.Tx, patch *api.ShortcutPatch) (* UPDATE shortcut SET ` + strings.Join(set, ", ") + ` WHERE id = ? - RETURNING id, title, payload, created_ts, updated_ts, row_status + RETURNING id, title, payload, creator_id, created_ts, updated_ts, row_status ` var shortcutRaw shortcutRaw if err := tx.QueryRowContext(ctx, query, args...).Scan( &shortcutRaw.ID, &shortcutRaw.Title, &shortcutRaw.Payload, + &shortcutRaw.CreatorID, &shortcutRaw.CreatedTs, &shortcutRaw.UpdatedTs, &shortcutRaw.RowStatus,