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
- listDocuments is deprecated. What should...
``` const database = new Databases(client); export const updateSearchCount = async (query: string, movie: Movie) => { const result = await database.listDoc...
- Questions about requests count on dashbo...
Hi guys I am new to this platform so I dont know if I am doing anything wrong. On dsahboard the request count is about 50k even though I dont feel like I have d...
- Account.get throwing an error on EXPO SD...
I am updating my react app to use EXPO SDK 54 and appwrite-react-native SDK 0.17.x but the account.get() function is not working I use it to get the current us...