fix: undo stupid copilot edits

This commit is contained in:
Eudald Gubert i Roldan 2025-02-05 15:15:08 +01:00
parent ce57e2ba5e
commit a76b3b8323
No known key found for this signature in database
GPG Key ID: 0F9608422FDE95F3

View File

@ -169,7 +169,7 @@ class User extends Model {
download: true,
update: type === 'root' || type === 'admin',
delete: type === 'root',
upload: type === 'root' || type === 'admin' || type === 'user',
upload: type === 'root' || type === 'admin',
createEreader: type === 'root' || type === 'admin',
accessAllLibraries: true,
accessAllTags: true,
@ -477,7 +477,7 @@ class User extends Model {
* User data for clients
* Emitted on socket events user_online, user_offline and user_stream_update
*
* @param {import('../objects/PlaybackSession')} sessions
* @param {import('../objects/PlaybackSession')[]} sessions
* @returns
*/
toJSONForPublic(sessions) {