chore: add linting, fix lint issues

This commit is contained in:
2018-03-28 14:42:28 -07:00
parent be536277c3
commit bef3104755
4 changed files with 9 additions and 8 deletions

View File

@@ -332,12 +332,12 @@ export default class Worker extends events.EventEmitter {
bool: {
filter: { term: { jobtype: this.jobtype } },
should: [
{ term: { status: 'pending'} },
{ term: { status: 'pending' } },
{ bool:
{ filter: [
{ filter: [
{ term: { status: 'processing' } },
{ range: { process_expiration: { lte: nowTime } } }
] }
] }
}
]
}
@@ -345,8 +345,8 @@ export default class Worker extends events.EventEmitter {
}
},
sort: [
{ priority: { order: 'asc' }},
{ created_at: { order: 'asc' }}
{ priority: { order: 'asc' } },
{ created_at: { order: 'asc' } }
],
size: this.checkSize
};