Skip to content

Commit 5a1b01d

Browse files
committed
Fix wrong subtracted regex
1 parent 1c66b97 commit 5a1b01d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

models/hasTimes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Base = require('./base');
55
const Time = require('./time');
66

77
const regex = /added (.*) of time spent/i;
8-
const subRegex = /substracted (.*) of time spent/i;
8+
const subRegex = /subtracted (.*) of time spent/i;
99

1010
/**
1111
* base model for models that have times

models/report.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ class report extends Base {
109109
// collect items, query times & stats
110110
collect.push(item = new model(this.config, item));
111111
item.getNotes()
112-
.then(() => item.times())
112+
.then(() => item.getTimes())
113113
.catch(error => done(error))
114-
.then(() => item.stats())
114+
.then(() => item.getStats())
115115
.catch(error => done(error))
116116
.then(() => {
117117
if (advance) advance();

0 commit comments

Comments
 (0)