mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Make websocket pushes more targeted
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* server component for the TimeLimit App
|
||||
* Copyright (C) 2019 - 2021 Jonas Lochmann
|
||||
* Copyright (C) 2019 - 2022 Jonas Lochmann
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
@@ -101,9 +101,10 @@ export const linkMailAddress = async ({ mailAuthToken, deviceAuthToken, parentUs
|
||||
await notifyClientsAboutChangesDelayed({
|
||||
familyId,
|
||||
sourceDeviceId: null,
|
||||
generalLevel: 1,
|
||||
targetedLevels: new Map(),
|
||||
database,
|
||||
websocket,
|
||||
isImportant: true,
|
||||
transaction
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* server component for the TimeLimit App
|
||||
* Copyright (C) 2019 - 2021 Jonas Lochmann
|
||||
* Copyright (C) 2019 - 2022 Jonas Lochmann
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
@@ -68,7 +68,8 @@ export const recoverParentPassword = async ({ database, websocket, password, mai
|
||||
database,
|
||||
familyId: userEntry.familyId,
|
||||
websocket,
|
||||
isImportant: true,
|
||||
generalLevel: 2,
|
||||
targetedLevels: new Map(),
|
||||
sourceDeviceId: null,
|
||||
transaction
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* server component for the TimeLimit App
|
||||
* Copyright (C) 2019 - 2021 Jonas Lochmann
|
||||
* Copyright (C) 2019 - 2022 Jonas Lochmann
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
@@ -80,7 +80,8 @@ export const signInIntoFamily = async ({ database, mailAuthToken, newDeviceInfo,
|
||||
familyId: userEntry.familyId,
|
||||
websocket,
|
||||
database,
|
||||
isImportant: true,
|
||||
generalLevel: 1,
|
||||
targetedLevels: new Map(),
|
||||
sourceDeviceId: deviceId,
|
||||
transaction
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user