cron syntax fix for file size setting after old video delete+
parent
f15905f859
commit
63c268aec3
2
cron.js
2
cron.js
|
@ -207,7 +207,7 @@ const deleteVideosByDays = async (v,days,addedQueries) => {
|
|||
const filename = formattedTime(row.time) + '.' + row.ext
|
||||
try{
|
||||
await fs.promises.unlink(dir + filename)
|
||||
clearSize += row.size
|
||||
clearSize += row.size / 1048576
|
||||
sendToWebSocket({
|
||||
f: 'video_delete',
|
||||
filename: filename + '.' + row.ext,
|
||||
|
|
Loading…
Reference in New Issue