"...internal/handler/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "0170d19fa7d9fdb5467dfbecb2dcef3372423066"
Unverified Commit 84d0433c authored by Wesley Liddick's avatar Wesley Liddick Committed by GitHub
Browse files

Merge pull request #493 from iBenzene/fix/json-extra-save-error

fix: 修复了 codex 更新用量窗口异常的 bug
parents 571d1479 037a4099
...@@ -1089,8 +1089,9 @@ func (r *accountRepository) UpdateExtra(ctx context.Context, id int64, updates m ...@@ -1089,8 +1089,9 @@ func (r *accountRepository) UpdateExtra(ctx context.Context, id int64, updates m
result, err := client.ExecContext( result, err := client.ExecContext(
ctx, ctx,
"UPDATE accounts SET extra = COALESCE(extra, '{}'::jsonb) || $1::jsonb, updated_at = NOW() WHERE id = $2 AND deleted_at IS NULL", "UPDATE accounts SET extra = COALESCE(extra, '{}'::jsonb) || $1::jsonb, updated_at = NOW() WHERE id = $2 AND deleted_at IS NULL",
payload, id, string(payload), id,
) )
if err != nil { if err != nil {
return err return err
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment