fixed a but with invalid property check

This commit is contained in:
Andris Reinman 2021-09-14 09:43:09 +03:00
parent 5e5a3d7eb0
commit ca3a365d96
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ module.exports.getContextForServername = async (servername, serverOptions) => {
});
}
return certHandler.getContextForServername(servername, serverOptions);
return await certHandler.getContextForServername(servername, serverOptions);
};
config.on('reload', () => {

View file

@ -208,7 +208,7 @@ class TaskHandler {
}
);
if (r && r.deletedCount) {
if (r && r.modifiedCount) {
log.info('Tasks', 'Requeued task id=%s lock=%s', task._id, task.lock.toString('hex'));
} else {
log.error('Tasks', 'Failed to requeue task id=%s lock=%s', task._id, task.lock.toString('hex'));