Signs are important

This commit is contained in:
Markus Olsson 2022-03-11 17:36:25 +01:00
parent f97c3460fd
commit d45a00491a

View file

@ -60,7 +60,7 @@ const getFilePath = (p: string) => join(p, `${getFilePrefix()}${fileSuffix}`)
const createStream = (p: string) => createWriteStream(p, { flags: 'a' })
const pruneDirectory = async (p: string) => {
const treshold = offsetFromNow(14, 'days')
const treshold = offsetFromNow(-14, 'days')
const files = await readdir(p)
for (const f of files) {