From e458608e38541d2d28342ffbf1a01af98905f80f Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 25 Jul 2024 15:10:54 -0300 Subject: [PATCH] refactor: rename createZapSplitsIfNotExists to seedZapSplits --- src/startup.ts | 4 ++-- src/utils/zap-split.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/startup.ts b/src/startup.ts index 4ec75e03..21df4d50 100644 --- a/src/startup.ts +++ b/src/startup.ts @@ -1,7 +1,7 @@ // Starts up applications required to run before the HTTP server is on. import { Conf } from '@/config.ts'; -import { createZapSplitsIfNotExists } from '@/utils/zap-split.ts'; +import { seedZapSplits } from '@/utils/zap-split.ts'; import { cron } from '@/cron.ts'; import { startFirehose } from '@/firehose.ts'; @@ -13,4 +13,4 @@ if (Conf.cronEnabled) { cron(); } -await createZapSplitsIfNotExists(); +await seedZapSplits(); diff --git a/src/utils/zap-split.ts b/src/utils/zap-split.ts index 830c1e7c..553d9c8c 100644 --- a/src/utils/zap-split.ts +++ b/src/utils/zap-split.ts @@ -39,7 +39,7 @@ export async function getZapSplits(store: NStore, pubkey: string): Promise