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'