RasmusRossetti / TimeLockBeta

0 stars 0 forks source link

I have a question about booking times at the end of the year #6

Open joelhellman opened 1 year ago

joelhellman commented 1 year ago

It's almost a new year, and I plan to wash the first week of the new year.

I can see a lot of booked time in January already, but I know my neighbors are away.

Could these times be from the previous year? Maybe old times could be cleared out at some point?

RasmusRossetti commented 1 year ago

Hello Joel,

Thank you for your question. To address your concern, we have implemented a manual script that allows administrators to clear out old timeslots. This means that any old bookings from the previous year will be removed from the system. However, we do plan to automate this process in the future using a serverless function or a cron job. This would allow the cancelOldTimestamps function to be updated periodically, even if no one is visiting the page.

Currently, implementing this automation in firebase comes with a cost, which is why we are doing it manually for now. We refresh old timestamps in a month, so any old bookings that were missed during the previous cleanup will be removed during the next manual cleanup.

Thank you for your understanding, and please let us know if you have any further questions or concerns.

Best regards, The Team