add RESYNC_ASSETS env
This commit is contained in:
parent
81ff51379d
commit
a3f3400d42
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue