fix: remove free balance
This commit is contained in:
@ -33,19 +33,19 @@ public class UserService
|
|||||||
var user = new User()
|
var user = new User()
|
||||||
{
|
{
|
||||||
PubKey = pubkey,
|
PubKey = pubkey,
|
||||||
Balance = 1000_000,
|
Balance = 0,
|
||||||
StreamKey = Guid.NewGuid().ToString()
|
StreamKey = Guid.NewGuid().ToString()
|
||||||
};
|
};
|
||||||
|
|
||||||
_db.Users.Add(user);
|
_db.Users.Add(user);
|
||||||
_db.Payments.Add(new Payment()
|
/*_db.Payments.Add(new Payment()
|
||||||
{
|
{
|
||||||
PubKey = pubkey,
|
PubKey = pubkey,
|
||||||
Type = PaymentType.Credit,
|
Type = PaymentType.Credit,
|
||||||
IsPaid = true,
|
IsPaid = true,
|
||||||
Amount = (ulong)user.Balance,
|
Amount = (ulong)user.Balance,
|
||||||
PaymentHash = SHA256.HashData(Encoding.UTF8.GetBytes($"{pubkey}-init-credit")).ToHex()
|
PaymentHash = SHA256.HashData(Encoding.UTF8.GetBytes($"{pubkey}-init-credit")).ToHex()
|
||||||
});
|
});*/
|
||||||
|
|
||||||
await _db.SaveChangesAsync();
|
await _db.SaveChangesAsync();
|
||||||
return user;
|
return user;
|
||||||
|
Reference in New Issue
Block a user