mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 16:38:37 +00:00
Delay saving database changes, was happening too early
This commit is contained in:
parent
f0a3170531
commit
e9188f0994
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,6 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
v.UserId = user.UserId;
|
||||
v.GameVersion = gameVersion;
|
||||
this.database.VisitedLevels.Add(v);
|
||||
await this.database.SaveChangesAsync();
|
||||
|
||||
}
|
||||
|
||||
switch (gameVersion)
|
||||
|
@ -71,6 +69,8 @@ namespace LBPUnion.ProjectLighthouse.Controllers
|
|||
return this.BadRequest();
|
||||
}
|
||||
|
||||
await this.database.SaveChangesAsync();
|
||||
|
||||
return this.Ok();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue