Skip to content

Commit

Permalink
fix: missing creator id in shortcut cache (#915)
Browse files Browse the repository at this point in the history
fix: missing creatot id in shortcut cache
  • Loading branch information
hyoban authored and boojack committed Jan 7, 2023
1 parent e2e8130 commit 936927f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion store/shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 936927f

Please sign in to comment.