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)))
|
await this.update(serialize((job: any)))
|
||||||
}
|
}
|
||||||
|
|
||||||
async get (): Promise<Array<Job>> {
|
async get (properties): Promise<Array<Job>> {
|
||||||
const jobs = await super.get()
|
const jobs = await super.get(properties)
|
||||||
jobs.forEach(normalize)
|
jobs.forEach(normalize)
|
||||||
return jobs
|
return jobs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user