Fixed bug
This commit is contained in:
parent
0c015f6c66
commit
fd73402e48
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class Db {
|
|||
createdAt: 'desc'
|
||||
})
|
||||
.limit(1)
|
||||
.exec(function (err, last) {
|
||||
.exec((err, last) => {
|
||||
if (err ||
|
||||
last.length === 0 ||
|
||||
(last[0] !== undefined &&
|
||||
|
|
Loading…
Reference in a new issue