I have a Next Js Website where the Signed in Users can Come and Post.
There are only Certain days in a week which we allow the Users to Post like "You can Only Post on Tuesday".
And It works Good. But I Tried to Send a POST Request with Postman/Insomnia to the Appwrite server with a Different Date and Different Time like Changed the Date to a Year Before and It thought that It is TRUE and Created it on the Day I sent It.
Can I run any Server Side Checks to Fix this? I can't run Cloud functions because I'm using Kubernetes and It doesn't support it.
Any Help Would be Appreciated.
??
Hi - I am not sure about why it thinks as true, do you have any screenshots so I can take a look?
Hi,
This is the POST request.
Now I can change anything Like date & time
And it uses the Date & Time which gets from this Request
As I'm aware, currently there no other way to do that without cloud functions
Oh.😭
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...