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
@@ -75,7 +75,7 @@ export function shouldAutoApprove(
|
||||
companyId: string,
|
||||
approvalType: string,
|
||||
): boolean {
|
||||
const rawMode = db.company.getCompanyExecutionMode(companyId);
|
||||
const rawMode = db.core.company.getCompanyExecutionMode(companyId);
|
||||
assertExecutionMode(rawMode);
|
||||
const mode = rawMode;
|
||||
|
||||
@@ -89,7 +89,7 @@ export function shouldAutoApprove(
|
||||
return false;
|
||||
}
|
||||
|
||||
const settings = db.company.getCompanyApprovalSettings(companyId);
|
||||
const settings = db.core.company.getCompanyApprovalSettings(companyId);
|
||||
if (!settings?.autoApproveHires) return false;
|
||||
|
||||
// When reviewDeliverables is ON, CEO strategy needs human review
|
||||
|
||||
Reference in new issue
Block a user