Skip to content

Commit b1f3c5c

Browse files
Merge pull request #1450 from gomessguii/fix/npm-install-action
fix: remove postinstall script from package.json to fix GitHub Action
2 parents 6d63f2f + 362736e commit b1f3c5c

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"db:deploy:win": "node runWithProvider.js \"xcopy /E /I prisma\\DATABASE_PROVIDER-migrations prisma\\migrations && npx prisma migrate deploy --schema prisma\\DATABASE_PROVIDER-schema.prisma\"",
1818
"db:studio": "node runWithProvider.js \"npx prisma studio --schema ./prisma/DATABASE_PROVIDER-schema.prisma\"",
1919
"db:migrate:dev": "node runWithProvider.js \"rm -rf ./prisma/migrations && cp -r ./prisma/DATABASE_PROVIDER-migrations ./prisma/migrations && npx prisma migrate dev --schema ./prisma/DATABASE_PROVIDER-schema.prisma && cp -r ./prisma/migrations/* ./prisma/DATABASE_PROVIDER-migrations\"",
20-
"db:migrate:dev:win": "node runWithProvider.js \"xcopy /E /I prisma\\DATABASE_PROVIDER-migrations prisma\\migrations && npx prisma migrate dev --schema prisma\\DATABASE_PROVIDER-schema.prisma\"",
21-
"postinstall": "npx prisma generate --schema=prisma/postgresql-schema.prisma && npx prisma migrate deploy --schema=prisma/postgresql-schema.prisma"
20+
"db:migrate:dev:win": "node runWithProvider.js \"xcopy /E /I prisma\\DATABASE_PROVIDER-migrations prisma\\migrations && npx prisma migrate dev --schema prisma\\DATABASE_PROVIDER-schema.prisma\""
2221

2322
},
2423
"repository": {

src/api/integrations/channel/whatsapp/whatsapp.baileys.service.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ import { randomBytes } from 'crypto';
134134
import EventEmitter2 from 'eventemitter2';
135135
import ffmpeg from 'fluent-ffmpeg';
136136
import FormData from 'form-data';
137-
import { readFileSync } from 'fs';
138137
import Long from 'long';
139138
import mimeTypes from 'mime-types';
140139
import NodeCache from 'node-cache';
@@ -230,10 +229,10 @@ export class BaileysStartupService extends ChannelStartupService {
230229

231230
private authStateProvider: AuthStateProvider;
232231
private readonly msgRetryCounterCache: CacheStore = new NodeCache();
233-
private readonly userDevicesCache: CacheStore = new NodeCache({
234-
stdTTL: 300000,
235-
useClones: false
236-
});
232+
private readonly userDevicesCache: CacheStore = new NodeCache({
233+
stdTTL: 300000,
234+
useClones: false,
235+
});
237236
private endSession = false;
238237
private logBaileys = this.configService.get<Log>('LOG').BAILEYS;
239238

0 commit comments

Comments
 (0)