mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-14 02:54:19 +01:00
refactor: rename createZapSplitsIfNotExists to seedZapSplits
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user