masu is too stupid to use ulong

This commit is contained in:
Spielepapagei 2023-04-06 22:04:52 +02:00
parent f4efb0f9a7
commit d7836e95ef
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ public class User
public DateTime TokenValidTime { get; set; } = DateTime.Now;
// Discord
public long DiscordId { get; set; } = -1;
public ulong DiscordId { get; set; }
// Date stuff
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;

View file

@ -115,7 +115,7 @@ public class DiscordOAuth2Service
Email = getData.GetValue<string>("email"),
FirstName = "User",
LastName = "User",
DiscordId = getData.GetValue<long>("id"),
DiscordId = getData.GetValue<ulong>("id"),
Status = UserStatus.DataPending
};
}

View file

@ -69,7 +69,7 @@ public class UserService
State = "",
Status = UserStatus.Unverified,
CreatedAt = DateTime.UtcNow,
DiscordId = -1,
DiscordId = 0,
TotpEnabled = false,
TotpSecret = "",
UpdatedAt = DateTime.UtcNow,