test: fix current test suite

This commit is contained in:
2026-04-29 01:13:41 +00:00
parent db727e0a9d
commit fad8143ead
4 changed files with 9 additions and 12 deletions
+1
View File
@@ -5,5 +5,6 @@ export default {
},
datasource: {
url: process.env.DATABASE_URL,
shadowDatabaseUrl: process.env.SHADOW_DATABASE_URL,
},
}
+1 -1
View File
@@ -175,7 +175,7 @@ export const opportunities = {
const record = await prisma.opportunity.findFirst({
where: isNumeric
? { id: Number(identifier) }
? { cwOpportunityId: Number(identifier) }
: { uid: identifier as string },
include: {
company: { include: { contacts: true, companyAddresses: true } },
+2 -2
View File
@@ -1157,9 +1157,9 @@ export async function transitionToQuoteSent(
return ok(currentStatus, targetStatus, activities);
}
// ── needsRevision flag → PendingRevision ────────────────────────────
// ── needsRevision flag → Active ──────────────────────────────────────
if (payload.needsRevision) {
const targetStatus = OpportunityStatus.PendingRevision;
const targetStatus = OpportunityStatus.Active;
const wasAlsoConfirmed = !!payload.quoteConfirmed;