fix: close merge-review mail policy and repair validation gaps
This commit is contained in:
1 parent
dcea4a063f
commit
d744c36365
16 files changed
+168
-31
No files matched your search
@@ -88,7 +88,7 @@ async function main(options = {}) {
|
||||
cleanup.push(()=>mailStore?.close(),()=>scanStore?.close(),()=>storageStore?.close(),()=>notificationStore?.close(),()=>orderRules?.close(),()=>assistantStore?.close(),()=>assistantJournal?.close());
|
||||
bpmSessions=new BpmSessionManager({stateDir:path.join(stateDir,'bpm-sessions'),accessClient:new BpmAccessClient()});
|
||||
custodian=new BpmCustodian({workspace,manager:bpmSessions});
|
||||
mailStore=new MailStore(path.join(stateDir,'mail'));mail=new MailService({store:mailStore});
|
||||
mailStore=new MailStore(path.join(stateDir,'mail'));mail=new MailService({store:mailStore,beforeSend:()=>{if(!orderRules)throw Object.assign(Error('通知业务状态尚未就绪。'),{status:503});require('../modules/order-rules/stability-period.cjs').assertActive(orderRules);}});
|
||||
mailStore.migrateLegacy(store.settings().templates);
|
||||
scanStore=new BpmScanStore(path.join(stateDir,'bpm-scan'));scanner=new BpmScanner({store:scanStore,workspace,manager:bpmSessions,settings:()=>store.settings()});
|
||||
storageStore=new StorageStore(path.join(stateDir,'storage'));storage=new StorageService({store:storageStore,jobs:store,outputDir});
|
||||
|
||||
Reference in new issue
Block a user