Currently running into this error when trying to update any documents:
AppwriteException: Invalid permissions param: Every permission must be of type string.
Here is an example of some code that is triggering it:
export const updateDayStats = async (userId, foodCalories, foodTotalFat) => { try { const day = await databases.updateDocument( databaseId, dayCollectionId, userId, {calories: foodCalories}, {totalFat: foodTotalFat}, ); return day } catch (error) { throw new Error(error) } }
And I have create, read, update, and delete permissions checked for users in the collection. I have another project that I haven't worked on in about a month or so, and in it I have update codes the same exact way as I am trying here and it worked fine. Did something with permissions change or am I doing something wrong?
Recommended threads
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...
- Cannot Update Empty oneToMany Relationsh...
Appwrite's `updateDocument()` API cannot update an empty oneToMany relationship array. When attempting to update an empty relationship with a single-item array,...
- reset password on expo app
Hi guys, has anyone here implemented the reset password functionality on a expo app? I have a two questions about it. 1. Do I HAVE to have a domain/webpage to...