You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 Bug Report: event name for users.*.update.*.name is incorrect #3441
create a function that listens to users.*.update.name
👍 Expected behavior
inside the function APPWRITE_FUNCTION_EVENT should be users.*.update.name
Having the event name consistent is key if we want to condition based on it inside the function.
If it is a feature and not a bug :), a regex condition works fine but it is more work.
But for that specific event (users/update/name), it doesn't because the event name reported is missing a bit. See below.
👎 Actual Behavior
APPWRITE_FUNCTION_EVENT gives : users.62a30b4fdba4f5a24be1.update
Which could be logical if it wasn't for the missing ".name"
So, at least to be consistent with other events it should be users.62a30b4fdba4f5a24be1.update.name
(but I still think that having somewhere the name of the generic event would be useful)
🎲 Appwrite version
Version 0.14.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
Activity
superseby2 commentedon Jun 28, 2022
FYI : same thing when listening to users.*.update.prefs
APPWRITE_FUNCTION_EVENT would give users.62a30b4fdba4f5a24be1.update
TorstenDittmann commentedon Jun 29, 2022
We actually should pass all events to the function here, not just one. So it looks like the one passed is the one without
.update.name👍🏻HarshMN2345 commentedon Sep 8, 2026
fixed in #13527