Skip to content

Commit

Permalink
fix: reassign stats so the field is dirty (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
d2lam authored Dec 21, 2018
1 parent 7f696ae commit 52fdd21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ class ExecutorQueue extends Executor {

// for backward compatibility
if (build && build.stats) {
build.stats.queueEnterTime = (new Date()).toISOString();
// need to reassign so the field can be dirty
build.stats = hoek.merge(build.stats, { queueEnterTime: (new Date()).toISOString() });
await build.update();
}

Expand Down

0 comments on commit 52fdd21

Please sign in to comment.