mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix path deletion on job fail
This commit is contained in:
parent
8c6ffadcc8
commit
f8f8fa831b
@ -20,7 +20,7 @@ export default {
|
|||||||
return result
|
return result
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await fs.promises
|
await fs.promises
|
||||||
.rm(tmpPath, { recursive: true, force: true })
|
.rm(job.workPath, { recursive: true, force: true })
|
||||||
.catch(() => null)
|
.catch(() => null)
|
||||||
|
|
||||||
throw error
|
throw error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user