From 1aef401afc5430885fb69e338ca63b24317ebf02 Mon Sep 17 00:00:00 2001 From: Raman Shekhawat Date: Wed, 10 Jul 2024 16:34:10 +0530 Subject: [PATCH] without changing --- src/server-extension/resolvers/top_collections.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server-extension/resolvers/top_collections.ts b/src/server-extension/resolvers/top_collections.ts index dbfc5cda4..8b539f88c 100644 --- a/src/server-extension/resolvers/top_collections.ts +++ b/src/server-extension/resolvers/top_collections.ts @@ -65,7 +65,7 @@ export class CollectionRow { category!: string @Field({ nullable: true }) - verified_at!: string + verifiedAt!: string @Field(() => Json, { nullable: true }) stats!: typeof JSON @@ -125,7 +125,7 @@ export class TopCollectionResolver { .addSelect('stats AS stats') .addSelect('volume_last_duration AS volume') .addSelect('sales_last_duration AS sales') - .addSelect('to_char(verified_at) AS verified_at') + .addSelect('verified_at::text AS "verifiedAt"') .addSelect('category AS category') .addSelect( 'CASE WHEN volume_previous_duration != 0 THEN ROUND((volume_last_duration - volume_previous_duration) * 100 / volume_previous_duration, 2) ELSE null END AS volume_change'