mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
fixed renaming missing callback (#28)
This commit is contained in:
@@ -39,8 +39,13 @@ setInterval(function() {
|
||||
logger.log({ err }, 'error writing cache file')
|
||||
return fs.unlink(cacheFsPathTmp)
|
||||
} else {
|
||||
fs.rename(cacheFsPathTmp, cacheFsPath)
|
||||
return logger.log({ len: dump.length, cacheFsPath }, 'wrote cache file')
|
||||
fs.rename(cacheFsPathTmp, cacheFsPath, err => {
|
||||
if (err) {
|
||||
logger.error({ err }, 'error renaming cache file')
|
||||
} else {
|
||||
logger.log({ len: dump.length, cacheFsPath }, 'wrote cache file')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}, 30 * OneMinute)
|
||||
|
||||
Reference in New Issue
Block a user