Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 8f0edaf

Browse files
Merge pull request #199 from Human-Connection/fix_delete_account
Fix usersettings hook if data === undefined
2 parents 97d640d + 18681cd commit 8f0edaf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/services/usersettings/hooks/validate-blacklist.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const { BadRequest } = require('@feathersjs/errors');
33
const validateBlacklist = () => {
44
return async (hook) => {
55
const { data } = hook;
6+
if (!data) return hook;
67
const blacklist = data.blacklist;
78
if (!blacklist) return hook;
89
const userId = data.userId;

0 commit comments

Comments
 (0)