I'm developing an app and I want to implement a feature that allows users to update their status, but only once every 24 hours. Essentially, I need to access the updatedAt field from Parse and verify if the change occurred today using Cloud Code.
Although I am not very experienced with JavaScript, I've attempted the following approaches: Link to solution How to compare 2 Date fields in Parse Cloud?
Unfortunately, I haven't been able to find a solution to determine (beforeSave) whether the date is today and allow the user to save/update the field accordingly.
An ideal example of what I'm aiming for is WhatsApp's restriction on changing the last seen status once every 24 hours, similar to Viber's feature.
Thank you.