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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?