1 parent 655e87e commit f70ed20Copy full SHA for f70ed20
1 file changed
src/server/features/push-register-logic.ts
@@ -45,9 +45,9 @@ async function registerNotificationSettingsWithServer(
45
46
let refs = root.root.notificationSettingsRefs!
47
48
- let existingRef = refs
49
- .values()
50
- .find(ref => ref?.notificationSettings?.$jazz.id === notificationSettingsId)
+ let existingRef = Array.from(refs.values()).find(
+ ref => ref?.notificationSettings?.$jazz.id === notificationSettingsId,
+ )
51
52
if (existingRef) {
53
existingRef.$jazz.set("lastSyncedAt", new Date())
0 commit comments