@nexrender/core 1.39.0 → 1.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/core",
3
- "version": "1.39.0",
3
+ "version": "1.39.1",
4
4
  "main": "src/index.js",
5
5
  "author": "Inlife",
6
6
  "scripts": {
@@ -30,5 +30,5 @@
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
- "gitHead": "8b43bca76104f9cffe69f27c849967532edad1ed"
33
+ "gitHead": "c8074c51c8b65311f991f8f417b4c091b2352e20"
34
34
  }
@@ -11,7 +11,12 @@ module.exports = function(job, settings) {
11
11
 
12
12
  return new Promise((resolve) => {
13
13
  settings.logger.log(`[${job.uid}] cleaning up...`);
14
-
14
+
15
+ // sometimes this attribute (workpath) is undefined
16
+ if (!job.workpath) {
17
+ job.workpath = settings.workpath.concat('/', job.uid, '/')
18
+ }
19
+
15
20
  rimraf(job.workpath, {glob: false}, (err) => {
16
21
  if (!err) {
17
22
  settings.logger.log(`[${job.uid}] Temporary AfterEffects project deleted. If you want to inspect it for debugging, use "--skip-cleanup"`)