import { storeJson } from '../fileModels/storeJson' import { sdk } from '../sdk' import { NACHO_DEFAULT_WORKSHOP_PDF_LINK_TEXT } from '../utils' // Note: the nacho Ignore Names list is NOT seeded here. It lives in // /data/nacho/ignore_names.txt and is created with the default on first // daemon start by the nacho-setup oneshot in main.ts. export const taskSeedNacho = sdk.setupOnInit(async (effects) => { const store = await storeJson.read().once() if ( store?.nachoWorkshopPdfLinkText === null || store?.nachoWorkshopPdfLinkText === undefined ) { await storeJson.merge( effects, { nachoWorkshopPdfLinkText: NACHO_DEFAULT_WORKSHOP_PDF_LINK_TEXT }, { allowWriteAfterConst: true }, ) } })