fix: hotfix 1.0.6

This commit is contained in:
NGPixel
2017-08-10 21:00:18 -04:00
parent a6254364e9
commit a5c7389206
3 changed files with 8 additions and 5 deletions

View File

@@ -378,9 +378,12 @@ module.exports = {
// Create cache for new entry
return self.updateCache(newEntryPath).then(entry => {
return search.add(entry)
})
return Promise.join(
db.Entry.deleteOne({ _id: entryPath }),
self.updateCache(newEntryPath).then(entry => {
return search.add(entry)
})
)
})
})
},