Adds Content deletion

This commit is contained in:
2024-08-16 18:14:48 -04:00
parent d1557f92c6
commit 8b702d16d6
8 changed files with 382 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ public class GetContentsByCreatorHandler(
c."Menu" as ColorMenu,
c."Accent" as ColorAccent,
content."CreatedAt",
content."DeletedBy",
content."DeletedAt",
content."Title",
content."Description",
content."Urls"
@@ -44,7 +46,8 @@ public class GetContentsByCreatorHandler(
INNER JOIN "Content"."Creators" AS creator ON content."CreatedBy" = creator."Id"
LEFT JOIN "Content"."Images" AS i ON creator."Id" = i."CreatorId"
LEFT JOIN "Content"."Colors" AS c ON creator."Id" = c."CreatorId"
WHERE content."CreatedBy" = '{req.CreatorId}'
WHERE content."CreatedBy" = '{req.CreatorId}'
AND content."DeletedBy" IS NULL
""");
if (req.LastId.HasValue)