feat: add admin tables for comments and recordings
All checks were successful
Build and Push Backend Image / build (push) Successful in 44s
Build and Push Frontend Image / build (push) Successful in 4m20s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 11:29:48 +01:00
parent dfe49b5882
commit 754a236e51
12 changed files with 720 additions and 12 deletions

View File

@@ -105,11 +105,7 @@ builder.queryField("adminGetArticle", (t) =>
},
resolve: async (_root, args, ctx) => {
requireAdmin(ctx);
const article = await ctx.db
.select()
.from(articles)
.where(eq(articles.id, args.id))
.limit(1);
const article = await ctx.db.select().from(articles).where(eq(articles.id, args.id)).limit(1);
if (!article[0]) return null;
return enrichArticle(ctx.db, article[0]);
},