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:
@@ -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-*'
|
||||
|
||||
@@ -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 } : {}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user