jimmyyem 1 тиждень тому
батько
коміт
e7c169bbac

+ 1 - 1
internal/logic/credit_balance/operate_credit_balance_logic.go

@@ -48,7 +48,7 @@ func (l *OperateCreditBalanceLogic) OperateCreditBalance(req *types.CreditBalanc
 	if err != nil && ent.IsNotFound(err) {
 		creditBalance, err = l.svcCtx.DB.CreditBalance.Create().
 			SetOrganizationID(*req.OrganizationId).
-			SetBalance(*req.Number).
+			SetBalance(0).
 			Save(l.ctx)
 	}