You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there are no classLevelPermissions in the schema perm below is undefined thus the error. A simple check should fix this issue since a check for perm already exist within the filterSensitiveData function but I'm not familiar with protectedFields.
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
If there are no classLevelPermissions in the schema
perm
below is undefined thus the error. A simple check should fix this issue since a check forperm
already exist within thefilterSensitiveData
function but I'm not familiar with protectedFields.parse-server/src/Controllers/DatabaseController.js
Lines 222 to 226 in 8adc054
Steps to reproduce
I accidentally ran into this issue while fixing a flaky test on the JS SDK. I don't have a way to reproduce this error server side.
Actual Outcome
Unhandled promise rejection
Expected Outcome
No errors
Environment
Server
6.0.0-alpha.27
Mac
local
Database
Mongodb
4.10.0
local
Client
JS
4.0.0
Logs
The text was updated successfully, but these errors were encountered: