Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
populate({ schema: userSettingsSchema }),
thumbnails(thumbnailOptions),
// remove personal data if its not the current authenticated user
iff(isOwnEntry(false),
cleanupPersonalData
),
iff(isOwnEntry(),
populate({ schema: userSettingsPrivateSchema })
)
],
create: [
when(isProvider('external'),
sendVerificationEmail()
),
when(isProvider('external'),
removeVerification()
),
thumbnails(thumbnailOptions),
inviteCode.after
],
update: [
thumbnails(thumbnailOptions)
],
patch: [],
remove: []
},
error: {
all: [],
find: [],
get: [],
create: [],