From 3b45a81873a02f8367c2667891cc7a398bdb0c18 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sat, 29 May 2021 20:30:46 +0430 Subject: [PATCH] #123 fix for next unsynchronized suggested link --- RMuseum/Services/Implementation/ArtifactService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RMuseum/Services/Implementation/ArtifactService.cs b/RMuseum/Services/Implementation/ArtifactService.cs index fef6ed84..22a1e3ca 100644 --- a/RMuseum/Services/Implementation/ArtifactService.cs +++ b/RMuseum/Services/Implementation/ArtifactService.cs @@ -2760,7 +2760,7 @@ namespace RMuseum.Services.Implementation .Include(l => l.SuggestedBy) .Include(l => l.Artifact) .Include(l => l.Item).ThenInclude(i => i.Images) - .Where(l => l.ReviewResult == ReviewResult.Approved && l.DisplayOnPage && l.GanjoorPostId == link.GanjoorPostId) + .Where(l => l.ReviewResult == ReviewResult.Approved && l.DisplayOnPage && l.GanjoorPostId == link.GanjoorPostId && l.ArtifactId == link.ArtifactId) .OrderBy(l => l.SuggestionDate) .FirstOrDefaultAsync(); if(preLink != null)