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
- [SOLVED] Unable to push function from AP...
When trying to push functions from Gitlab CI (with an API KEY and using the CLI), i saw that i was unable to push functions. ``` $ appwrite client --endpoint $...
- Appwrite Functions not executing with a ...
I have multiple functions running with a CRON Job however, they all stopped executing around 35 mins ago from this post. Project ID:6a4a03920012bede992d Region:...
- Deployment fails at sidecar step "Build ...
Hi Appwrite team, I'm getting a consistent deployment failure on Appwrite Cloud. The build itself completes successfully, but a post-build sidecar step then fa...