add RESYNC_ASSETS env

This commit is contained in:
jejolare 2025-01-03 21:04:59 +07:00
parent 81ff51379d
commit a3f3400d42

View file

@ -1872,6 +1872,11 @@ const requestsLimiter = rateLimit({
(async () => {
if (process.env.RESYNC_ASSETS === "true") {
await Asset.destroy({ where: {} });
}
while (true) {
try {
// Fetch assets from external API