Browse Source

Merge pull request #19 from vernu/fcm-hotfix

hotfix(api): update deprecated firebase-admin fcm send api
legacy-ui
Israel Abebe 2 years ago
committed by GitHub
parent
commit
7dcefba229
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      api/package.json
  2. 9857
      api/pnpm-lock.yaml
  3. 2
      api/src/gateway/gateway.service.ts

2
api/package.json

@ -32,7 +32,7 @@
"axios": "^1.4.0", "axios": "^1.4.0",
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
"firebase-admin": "^10.3.0",
"firebase-admin": "^12.5.0",
"handlebars": "^4.7.8", "handlebars": "^4.7.8",
"mongoose": "^6.11.1", "mongoose": "^6.11.1",
"nodemailer": "^6.9.13", "nodemailer": "^6.9.13",

9857
api/pnpm-lock.yaml
File diff suppressed because it is too large
View File

2
api/src/gateway/gateway.service.ts

@ -181,7 +181,7 @@ export class GatewayService {
} }
try { try {
const response = await firebaseAdmin.messaging().sendAll(fcmMessages)
const response = await firebaseAdmin.messaging().sendEach(fcmMessages)
console.log(response) console.log(response)

Loading…
Cancel
Save