From da5861086e21ebd99e8a1e633c19c3e23e835b4f Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 3 Jun 2022 11:41:37 -0700 Subject: [PATCH] nice running in google cloud run --- packages/api/package.json | 7 +++---- packages/common/src/models/conversation.model.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/api/package.json b/packages/api/package.json index cccc7eb..018dbeb 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -7,11 +7,10 @@ "common": "rm -rf ./common && cp -r ../common/src ./common/", "dev": "NODE_ENV=development && yarn common && nodemon", "start:dev": "ts-node index.ts", - "start": "node dist/index.js", "lint": "eslint --ext .ts,.tsx .", - "build": "npm run common && npm run lint && tsc -p .", - "gcp-build": "npm run build", - "production": "NODE_ENV=production nodemon" + "build": "npm run lint && tsc -p .", + "start": "node dist/index.js", + "gcp-build": "npm run build" }, "devDependencies": { "@types/express": "^4.17.13", diff --git a/packages/common/src/models/conversation.model.ts b/packages/common/src/models/conversation.model.ts index b5a2c72..3ed04d4 100644 --- a/packages/common/src/models/conversation.model.ts +++ b/packages/common/src/models/conversation.model.ts @@ -32,7 +32,7 @@ export class ConversationMember { public memberState: MemberState, public isActive: boolean = true, - public lastActiveDate: Date = null, + public lastActiveDate: Date, public joinedDate = Date, ) {} }