Skip to content

Commit

Permalink
fix sync verify flag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Sep 2, 2024
1 parent 22b8075 commit 237d2e3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions TASVideos/Pages/Submissions/Catalog.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,14 @@ public async Task<IActionResult> OnPost()
bool unsynced = false;
if (Catalog.CanSyncVerify)
{
if (Catalog.SyncVerified && !submission.SyncedOn.HasValue)
if (Catalog.SyncVerified)
{
submission.SyncedOn = DateTime.UtcNow;
submission.SyncedByUserId = User.GetUserId();
synced = true;
if (!submission.SyncedOn.HasValue)
{
submission.SyncedOn = DateTime.UtcNow;
submission.SyncedByUserId = User.GetUserId();
synced = true;
}
}
else
{
Expand Down

0 comments on commit 237d2e3

Please sign in to comment.