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
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- [SOLVED] React Native Appwrite SDK not w...
So I'm trying to generate a unique ID using the ID.unique() and its generating properly, but its saying its longer than 36 characters but it isnt.. ```typescri...