mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(api): do not try to transform empty values passed to user notificationTypes
fixes #1501
This commit is contained in:
@@ -86,7 +86,11 @@ export class UserSettings {
|
|||||||
|
|
||||||
return values;
|
return values;
|
||||||
},
|
},
|
||||||
to: (value: Partial<NotificationAgentTypes>): string => {
|
to: (value: Partial<NotificationAgentTypes>): string | null => {
|
||||||
|
if (!value || typeof value !== 'object') {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
const allowedKeys = Object.values(NotificationAgentKey);
|
const allowedKeys = Object.values(NotificationAgentKey);
|
||||||
|
|
||||||
// Remove any unknown notification agent keys before saving to db
|
// Remove any unknown notification agent keys before saving to db
|
||||||
|
Reference in New Issue
Block a user