-
Notifications
You must be signed in to change notification settings - Fork 143
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
π Reproduction steps
Running the following code in a Flutter project:
prefs = {"data": {"name" : "Erhan"}};
User prefsUpdatedUser = await account.updatePrefs(
prefs: prefs,
);
Running the code to update user preferences.
π Expected behavior
The user preferences should be:
prefsUpdatedUser.prefs => {"data": {"name" : "Erhan"}}
π Actual Behavior
Instead, the actual preferences returned are:
prefsUpdatedUser.prefs => {"data": {"data": {"name" : "Erhan"}}}
π² Appwrite version
Appwrite Cloud
π» Operating system
MacOS
π§± Your Environment
I'm working on a Flutter project using Visual Studio Code with appwrite: ^13.0.0.
The issue can be easily resolved by sending the correct format of prefs. However, it creates confusion when working according to the references provided, which is why I believe this is a bug and wanted to report it:
https://appwrite.io/docs/references/cloud/models/user
https://appwrite.io/docs/references/1.6.x/models/preferences
π Have you spent some time to check if this issue has been raised before?
- I checked and didn't find similar issue
π’ Have you read the Code of Conduct?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested