Hotfix mongo`s bugs
Signed-off-by: Dmitrii <computer@yawaflua.tech> Took 9 minutes
This commit is contained in:
@@ -70,7 +70,7 @@ public class WebhookController( AppDbContext dbContext, ILogger<WebhookControlle
|
||||
var user = await dbContext.Users.FirstOrDefaultAsync(k => k.ShortId == userShortId);
|
||||
if (user == null)
|
||||
return BadRequest("User not found");
|
||||
var cardToUse = user.Cards.FirstOrDefault(c => c.ShortId == cardShortId && c.Id == cardId && c.WebhookConnected);
|
||||
var cardToUse = user.Cards.FirstOrDefault(c => c.ShortId == cardShortId && c.Id == cardId && c.WebhookConnected == true);
|
||||
if (cardToUse == null)
|
||||
return BadRequest("Card not found");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user