
I'm triggering a function on a teams.*.create event. The functions should update the team's preferences. The issue comes with it says updatePrefs is not a function.

Is this in the cloud?
updatePrefs
is a new function which was introduced on version 1.3.x
The cloud is on version 1.1.2

oh dear, apologies, not aware of that little detail <:appwritepeepo:902865250427215882> thanks!

Another question, the one click one with Digital Ocean is up-to-date?

I think it's up-to-date wit the first 1.3.0
version
You can check here: https://github.com/appwrite/integration-for-digitalocean
But, you can install the one-click, And then right away run these 4 upgrade commands.
cd /root/
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:1.3.7
cd /root/appwrite/
docker compose exec appwrite migrate

super cool!

[SOLVED] TypeError: teams.updatePrefs is not a function
Recommended threads
- Unable to create push providers - FCM or...
Currently unable to create a push provider for FCM or APNS.... https://github.com/appwrite/console/issues/2045 When uploading a file... FCM = Valid file retu...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
