u
This commit is contained in:
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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user