This commit is contained in:
oneao committed 2026-01-15 20:31:04 +08:00
1 parent 5bf69e977b
commit 44ab5416a3
1 file changed
+1 -2
@@ -144,7 +144,7 @@ func CreateMoneyCategory(ctx context.Context, c *app.RequestContext) {
}
// 插入
db.WithTx(ctx, func(q *repo.Queries) error {
err = db.WithTx(ctx, func(q *repo.Queries) error {
err = q.InsertMoneyUserCategory(ctx, params)
if err != nil {
return err
@@ -161,4 +161,3 @@ func CreateMoneyCategory(ctx context.Context, c *app.RequestContext) {
response.Success(c).Data(resp).Send()
}