refactor(db): group database domain modules
This commit is contained in:
1 parent
e43a89096d
commit
6da0a58769
160 files changed
+2124
-1999
No files matched your search
@@ -140,8 +140,8 @@ export function createMainRuntimeSupport(state: MainRuntimeState) {
|
||||
function seedDefaultAutomationRules(companyId: string) {
|
||||
const db = requireDb();
|
||||
seedDefaultAutomationRulesImpl(companyId, {
|
||||
listAutomationRuleNames: (targetCompanyId) => db.automationMod.listAutomationRuleNames(targetCompanyId),
|
||||
saveAutomationRule: (input) => db.automationMod.saveAutomationRule(input),
|
||||
listAutomationRuleNames: (targetCompanyId) => db.automation.rules.listAutomationRuleNames(targetCompanyId),
|
||||
saveAutomationRule: (input) => db.automation.rules.saveAutomationRule(input),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user