Skip to content

Commit

Permalink
Version Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurboss committed May 21, 2024
1 parent 861b382 commit 24d86ad
Show file tree
Hide file tree
Showing 8 changed files with 1,772 additions and 1,747 deletions.
1 change: 0 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
}
],
"no-duplicate-imports": "off",
"@typescript-eslint/no-duplicate-imports": "error",
"lodash-fp/prefer-constant": "off"
}
},
Expand Down
1 change: 0 additions & 1 deletion apps/server/auth/src/app/bullion-auth.app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export class AuthServerAppModule implements NestModule {
}
}

// eslint-disable-next-line @typescript-eslint/no-duplicate-imports
import {
ArgumentsHost,
Catch,
Expand Down
13 changes: 13 additions & 0 deletions apps/server/whatsapp-common/src/firebase.app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
import { existsSync, readFileSync } from 'fs';
import firebaseConfig from './assets/firebase.config.json';
import * as admin from 'firebase-admin';
import { join } from 'path';
try {
const generalConfigPath = join(__dirname, 'firebase.config.json');
if (existsSync(generalConfigPath)) {
const d = JSON.parse(readFileSync(generalConfigPath).toString());
if (typeof d === 'object') {
Object.assign(firebaseConfig, d);
}
}
} catch (error) {
//
}
export const firebaseApp = admin.initializeApp({
credential: admin.credential.cert({
clientEmail: firebaseConfig.client_email,
Expand Down
18 changes: 15 additions & 3 deletions apps/server/whatsapp-common/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint-disable no-console */
// eslint-disable-next-line unused-imports/no-unused-imports
import 'qrcode-terminal';
import { Boom } from '@hapi/boom';
import makeWASocket, {
Expand All @@ -13,9 +12,21 @@ import { BehaviorSubject, Subject } from 'rxjs';
import _generalConfig from './assets/general.config.json';
import { firebaseDb } from './firebase.app';
import { useFireBaseRealTimeDatabaseStoreAuthState } from './firebaseRD.creds.store';
import { join } from 'path';
import { existsSync, readFileSync } from 'fs';

try {
const generalConfigPath = join(__dirname, 'general.config.json');
if (existsSync(generalConfigPath)) {
const d = JSON.parse(readFileSync(generalConfigPath).toString());
if (typeof d === 'object') {
Object.assign(_generalConfig, d);
}
}
} catch (error) {
//
}
console.log('General Config', _generalConfig);

const ServerConfigBehavior = new BehaviorSubject({
whatsappLoggedIn: false,
dbReadStarted: false,
Expand All @@ -31,10 +42,11 @@ async function connectToWhatsApp() {
const sock = makeWASocket({
auth: state,
logger: pin({ level: 'info' }),
markOnlineOnConnect: false,
// logger: pin({ level: 'debug' }),
// can provide additional config here
printQRInTerminal: true,
// shouldSyncHistoryMessage: () => false,
shouldSyncHistoryMessage: () => false,
browser: Browsers.ubuntu('Desktop'),
syncFullHistory: false,
});
Expand Down
2 changes: 1 addition & 1 deletion libs/frontend/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"@rps/bullion-interfaces": "*"
},
"peerDependencies": {
"@angular/core": "16.2.3"
"@angular/core": "17.1.3"
}
}
2 changes: 1 addition & 1 deletion libs/frontend/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"peerDependencies": {
"@bf/core": "*",
"@ngneat/falso": "^6.4.0",
"@angular/core": "16.2.3",
"@angular/core": "17.1.3",
"@rps/bullion-interfaces": "*"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"@angular/platform-browser": "17.1.3",
"@angular/platform-browser-dynamic": "17.1.3",
"@angular/router": "17.1.3",
"@hapi/boom": "^10.0.1",
"@nestjs/common": "10.0.2",
"@nestjs/config": "^2.3.2",
"@nestjs/core": "10.0.2",
Expand All @@ -81,7 +82,7 @@
"@ngneat/falso": "^6.4.0",
"@nx/angular": "18.0.8",
"@rps/angular-nav-bars": "^1.0.3",
"@whiskeysockets/baileys": "^6.5.0",
"@whiskeysockets/baileys": "^6.7.2",
"axios": "1.6.7",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
Expand Down
Loading

0 comments on commit 24d86ad

Please sign in to comment.