HI,
I am using an appwrite function to bring me certain information based on its date, but the problem is when I try to group them with Nodejs it takes the date as it is stored.
I need to get the time difference to make an exact calculation I have appwrite version 1.3.4
not really sure what you mean...
Are you trying to get the headers being sent to your 1.3.4
function?
@Binyamin Yes
Headers aren't passed to the function in version 1.3.4
you'll need to upgrade to version 1.4.6
and recrete the function using the new function syntax.
In your case I'll recommed do as follow
- Backup everything!
- Upgrade to version
1.3.8
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.8
- <a:ablobjoin:635256362850451476> Run migrate
- Upgrade to version
1.4.6
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="upgrade" \
appwrite/appwrite:1.4.6
- <a:ablobjoin:635256362850451476> Run migrate
- Redeploy the function.
If you want to stay in that version, you can try this archived solution https://github.com/BoolCode/appwrite-funcover With Flatten Headers enabled
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...