🐛 Bug Report: User object empty prefs field is an array instead of an object #6360
Open
2 tasks done
Labels
api / realtime
Fixes and upgrades for the Appwrite Realtime API.
bug
Something isn't working
product / functions
Fixes and upgrades for the Appwrite Functions.
👟 Reproduction steps
When a
users.*.delete
event triggers a cloud function for a user that has empty preferences, the User objectprefs
is an array instead of an object.Reproducible code
👍 Expected behavior
The User object from
context.req.body
should haveprefs:{}
👎 Actual Behavior
The User object from
context.req.body
hasprefs:[]
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
Appwrite 1.4 cloud functions
runtime: dart 2.17.0
dart_appwrite: 8.0.0
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: