Skip to content

Commit

Permalink
fix(mongo): fix typo of timers
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 31, 2020
1 parent fbb372f commit 9dfd4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-mongo/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ extendDatabase(MongoDatabase, {
if (data.timers) {
$set.timers = {}
for (const key in data.timers) {
if (key === '$date') $set.timer._date = data.timers.$date
else $set.timer[key.replace(/\./gmi, '_')] = data.timers[key]
if (key === '$date') $set.timers._date = data.timers.$date
else $set.timers[key.replace(/\./gmi, '_')] = data.timers[key]
}
}
if (data.usage) {
Expand Down

0 comments on commit 9dfd4cb

Please sign in to comment.