diff --git a/Project-Unite/Controllers/APIController.cs b/Project-Unite/Controllers/APIController.cs index 3ddb69a..5dd8065 100644 --- a/Project-Unite/Controllers/APIController.cs +++ b/Project-Unite/Controllers/APIController.cs @@ -59,7 +59,7 @@ public ActionResult SetPongCP(ulong id) var db = new ApplicationDbContext(); var t = db.OAuthTokens.FirstOrDefault(x => x.Id == token); var user = db.Users.FirstOrDefault(x => x.Id == t.UserId); - user.Pong_HighestCodepointsCashout = id; + user.Pong_HighestCodepointsCashout = (long)id; db.SaveChanges(); return new HttpStatusCodeResult(200); } @@ -134,7 +134,7 @@ public ActionResult SetCodepoints(ulong id) var db = new ApplicationDbContext(); var t = db.OAuthTokens.FirstOrDefault(x => x.Id == token); var user = db.Users.FirstOrDefault(x => x.Id == t.UserId); - user.Codepoints = id; + user.Codepoints = (long)id; db.SaveChanges(); return new HttpStatusCodeResult(200); } diff --git a/Project-Unite/Models/IdentityModels.cs b/Project-Unite/Models/IdentityModels.cs index 6783e7c..8b4ee89 100644 --- a/Project-Unite/Models/IdentityModels.cs +++ b/Project-Unite/Models/IdentityModels.cs @@ -42,7 +42,7 @@ public async Task GenerateUserIdentityAsync(UserManager