fix: remove free balance
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
2025-03-11 21:48:29 +00:00
parent 8459a96e9a
commit edd5607157

View File

@ -33,19 +33,19 @@ public class UserService
var user = new User()
{
PubKey = pubkey,
Balance = 1000_000,
Balance = 0,
StreamKey = Guid.NewGuid().ToString()
};
_db.Users.Add(user);
_db.Payments.Add(new Payment()
/*_db.Payments.Add(new Payment()
{
PubKey = pubkey,
Type = PaymentType.Credit,
IsPaid = true,
Amount = (ulong)user.Balance,
PaymentHash = SHA256.HashData(Encoding.UTF8.GetBytes($"{pubkey}-init-credit")).ToHex()
});
});*/
await _db.SaveChangesAsync();
return user;