First, tickets are now deleted once they have been successfully performed.
Second, a cloud function was added which will run once a day to delete all tickets, since some tickets might get abandoned.
The first feature should be enough to keep the ticket storage small. The second is precautionary, because theoretically users could open a lot of tickets and prevent their closure in an attempt to make our database storage expensive.
First, tickets are now deleted once they have been successfully performed.
Second, a cloud function was added which will run once a day to delete all tickets, since some tickets might get abandoned.
The first feature should be enough to keep the ticket storage small. The second is precautionary, because theoretically users could open a lot of tickets and prevent their closure in an attempt to make our database storage expensive.