mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Fixes bad check of an array (#172)
This commit is contained in:
parent
0867a81ebe
commit
9554d17a1d
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ export const subscribeAll = async (user: User): Promise<void> => {
|
|||
if (user.phone) {
|
||||
channels.push('text')
|
||||
}
|
||||
if (user.pushEnabledDevices) {
|
||||
if (user.pushEnabledDevices.length) {
|
||||
channels.push('push')
|
||||
}
|
||||
const subscriptions = await allSubscriptions(user.project_id, channels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue