Update serverless configuration to comment out Prisma client dependencies and enhance MinglarService to exclude draft activities from host activity retrieval.

This commit is contained in:
2025-12-05 18:50:14 +05:30
parent ecf45c3e7c
commit 4c1a04d043
2 changed files with 7 additions and 6 deletions

View File

@@ -70,10 +70,10 @@ build:
platform: node
# Mark as external so they're not bundled into the JS
external:
- '@prisma/client'
# - '@prisma/client'
# - '.prisma/client'
# - '.prisma'
- '@prisma/adapter-pg'
- '.prisma/client'
- '.prisma'
- 'pg'
- '@aws-sdk/*'
- '@smithy/*'
@@ -84,10 +84,10 @@ build:
- '@aws-sdk/*'
- '@smithy/*'
- '@aws-crypto/*'
- '@prisma/client'
- '@prisma/adapter-pg'
- '.prisma'
- '.prisma/client'
# - '@prisma/client'
# - '.prisma'
# - '.prisma/client'
- 'pg'
- 'pg-*'
- 'postgres-*'

View File

@@ -260,6 +260,7 @@ export class MinglarService {
async getAllHostActivityForMinglar(search?: string, hostXid?: number, paginationOptions?: { page: number; limit: number; skip: number }) {
const whereClause: any = {
isActive: true,
activityInternalStatus: { notIn: [ACTIVITY_INTERNAL_STATUS.DRAFT_PQ] },
...(hostXid ? { hostXid } : {}),
};