mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: rename createZapSplitsIfNotExists to seedZapSplits
This commit is contained in:
parent
882f8009dc
commit
e458608e38
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue