Hotfix mongo`s bugs
Java CI / build (push) Successful in 47s
.NET+Docker CI/CD / Unit and Integration tests (push) Successful in 31s
.NET+Docker CI/CD / Push Docker image to ghcr.io (push) Failing after 29s

Signed-off-by: Dmitrii <computer@yawaflua.tech>

Took 9 minutes
This commit is contained in:
Dmitrii
2026-07-12 07:32:28 +03:00
parent 69244ef832
commit d12890f8eb
7 changed files with 7 additions and 25 deletions
@@ -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");
@@ -9,8 +9,8 @@ public class Card
public string Name { get; set; }
public string SpworldsID { get; set; }
public string Token { get; set; }
public string ShortId { get; set; } = "";
public bool WebhookConnected { get; set; } = false;
public string? ShortId { get; set; } = "";
public bool? WebhookConnected { get; set; } = false;
public int? Balance { get; set; } = -1;