From a5def9fa6cedef0c67c3b1ce695f12ea462b7837 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 3 Oct 2024 18:16:23 -0300 Subject: [PATCH] refactor: just import config.ts directly instead of loading dotenv in trends.ts script --- scripts/trends.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/trends.ts b/scripts/trends.ts index c6ff63e..627fb33 100644 --- a/scripts/trends.ts +++ b/scripts/trends.ts @@ -1,5 +1,5 @@ -import * as dotenv from '@std/dotenv'; import { z } from 'zod'; +import '@/config.ts'; import { updateTrendingEvents, @@ -9,12 +9,6 @@ import { updateTrendingZappedEvents, } from '@/trends.ts'; -await dotenv.load({ - export: true, - defaultsPath: null, - examplePath: null, -}); - const trendSchema = z.enum(['pubkeys', 'zapped_events', 'events', 'hashtags', 'links']); const trends = trendSchema.array().parse(Deno.args);