Refactor db package (#35380)

Remove unnecessary code
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-08-30 01:04:06 +08:00
1 parent aef4a3514c
commit 1f50048ac9
11 files changed
+37 -52

No files matched your search

+1 -1
View File
@@ -86,7 +86,7 @@ func RegenerateSession(ctx context.Context, oldKey, newKey string) (*Session, er
}
}
if _, err := db.Exec(ctx, "UPDATE "+db.TableName(&Session{})+" SET `key` = ? WHERE `key`=?", newKey, oldKey); err != nil {
if _, err := db.Exec(ctx, "UPDATE `session` SET `key` = ? WHERE `key`=?", newKey, oldKey); err != nil {
return nil, err
}