From a6bf21de57f5ad7b9fdd146483aa7ceff71b78ec Mon Sep 17 00:00:00 2001 From: Danielzxccc Date: Tue, 19 Dec 2023 17:13:55 +0800 Subject: [PATCH] fix: createdat naming --- src/modules/Forums/ForumsService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Forums/ForumsService.ts b/src/modules/Forums/ForumsService.ts index 8a79bb8..dd0726a 100644 --- a/src/modules/Forums/ForumsService.ts +++ b/src/modules/Forums/ForumsService.ts @@ -189,7 +189,7 @@ export async function viewQuestion( 'forums.title', 'forums.question', 'forums.imagesrc', - sql`CAST(forums.createdat AS TEXT)`.as('createat'), + sql`CAST(forums.createdat AS TEXT)`.as('createdat'), sql`CAST(forums.updatedat AS TEXT)`.as('updatedat'), 'forums.views', fn.count('forums_answers.id').as('answer_count'),