mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-25 17:08:35 +03:00
fix error with errors
This commit is contained in:
@@ -65,8 +65,10 @@ function removeOutdatedDumps(exportPath: string): Promise<void> {
|
||||
|
||||
// read files in export directory
|
||||
fs.readdir(exportPath, async (err: any, files: string[]) => {
|
||||
if (err) Logger.error(err);
|
||||
if (err) return resolve();
|
||||
if (err) {
|
||||
Logger.error(err);
|
||||
return resolve();
|
||||
}
|
||||
|
||||
files.forEach(file => {
|
||||
// we only care about files that start with "<tablename>_" and ends with .csv
|
||||
|
||||
Reference in New Issue
Block a user