CognxSafeTrack commited on
Commit ·
1a99598
1
Parent(s): 1bf0dca
fix: stabilize API build by correcting Prisma naming and unused imports
Browse files
apps/api/src/services/organization.ts
CHANGED
|
@@ -17,7 +17,7 @@ export async function getOrganizationByPhoneNumberId(phoneNumberId: string): Pro
|
|
| 17 |
if (cached) return cached;
|
| 18 |
|
| 19 |
// 2. Lookup in DB
|
| 20 |
-
const phoneRecord = await prisma.
|
| 21 |
where: { id: phoneNumberId },
|
| 22 |
select: { organizationId: true }
|
| 23 |
});
|
|
|
|
| 17 |
if (cached) return cached;
|
| 18 |
|
| 19 |
// 2. Lookup in DB
|
| 20 |
+
const phoneRecord = await (prisma as any).whatsAppPhoneNumber.findUnique({
|
| 21 |
where: { id: phoneNumberId },
|
| 22 |
select: { organizationId: true }
|
| 23 |
});
|
apps/api/src/services/whatsapp.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import { logger } from '../logger';
|
| 2 |
import { prisma } from './prisma';
|
| 3 |
-
import { scheduleMessage, enrollUser, whatsappQueue,
|
| 4 |
|
| 5 |
export class WhatsAppService {
|
| 6 |
private static normalizeCommand(text: string): string {
|
|
|
|
| 1 |
import { logger } from '../logger';
|
| 2 |
import { prisma } from './prisma';
|
| 3 |
+
import { scheduleMessage, enrollUser, whatsappQueue, scheduleInteractiveList, setTimeTravelContext, getTimeTravelContext, clearTimeTravelContext } from './queue';
|
| 4 |
|
| 5 |
export class WhatsAppService {
|
| 6 |
private static normalizeCommand(text: string): string {
|