TeamShiksha / logoexecutive

Logo Executive is your partner in logo exploration. Our platform boasts a collection of APIs designed to simplify the process of obtaining company logos.
https://logoexecutive.vercel.app/
22 stars 14 forks source link

Script to refresh usage count #355

Closed DeltaDynamo closed 3 weeks ago

DeltaDynamo commented 4 weeks ago

What is this issue related to?

Enhancement

Description

This task involves creating a script which runs everyday at midnight and checks the subscriptions collection to refresh the usage count.

Expected Behavior

1) For every subscription where the usage Count has hit the usage limit, or if the monthly time duration for subscription has elapsed, the usage count must be reset to zero. 2) This script must run at midnight everyday to scan the database and refresh the usageCount.

Current Behavior

There is no such script as of now.

Additional Information (optional)

No response

Confirmation Checklist