fix(xo-server): getJob return the correct job
This commit is contained in:
parent
8f784162ea
commit
2b9ba69480
@ -97,8 +97,8 @@ class JobsDb extends Collection {
|
||||
await this.update(serialize((job: any)))
|
||||
}
|
||||
|
||||
async get (): Promise<Array<Job>> {
|
||||
const jobs = await super.get()
|
||||
async get (properties): Promise<Array<Job>> {
|
||||
const jobs = await super.get(properties)
|
||||
jobs.forEach(normalize)
|
||||
return jobs
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user