refactor: rename createZapSplitsIfNotExists to seedZapSplits

This commit is contained in:
P. Reis 2024-07-25 15:10:54 -03:00
parent 9fe1633dd2
commit c184a18cc1
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -39,7 +39,7 @@ export async function getZapSplits(store: NStore, pubkey: string): Promise<Ditto
return zapSplits;
}
export async function createZapSplitsIfNotExists() {
export async function seedZapSplits() {
const store = await Storages.admin();
const zap_split: DittoZapSplits | undefined = await getZapSplits(store, Conf.pubkey);