I am writing a validation cloud function that performs multiple checks in sequence and when a check fails it writes error to DB and exits.
I exit using : return context.res
However for some reason function continues after the return statement and executes the remaining function.
I am using Dart 3.0. Can someone please confirm what's the correct way to ensure function execution stops.
Thanks
It's not Appwrite specific. A return statement ends the execution of a function 🧐
I know.. Felt dumb just asking the question. Let me redo the function, its quite big so also often runs into the "curl internal error fails" .. Will update once I know more.
[Closed] Stopping a cloud function
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- [SOLVED] OAuth With Google & Flutter
Hi all, I'm trying to sign in with google and it all goes swimmingly until the call back. I get a new user created on the appwrite dashboard however the flutte...