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
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here π I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...
- 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...