From 2dda9f47f76d9586fe7d268a3855872888d99c88 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 6 Mar 2024 15:44:24 +0000 Subject: [PATCH] fix: strip id prefix --- NostrStreamer/Controllers/GameInfoController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NostrStreamer/Controllers/GameInfoController.cs b/NostrStreamer/Controllers/GameInfoController.cs index 356482d..63eceee 100644 --- a/NostrStreamer/Controllers/GameInfoController.cs +++ b/NostrStreamer/Controllers/GameInfoController.cs @@ -23,7 +23,7 @@ public class GameInfoController(GameDb gameDb) : Controller [HttpGet("{id}")] public async Task GetGame([FromQuery] string id) { - var data = await gameDb.GetGame(id); + var data = await gameDb.GetGame(id.Split(":")[1]); return Json(data?.ToGameInfo(), new JsonSerializerSettings() {