fix(xo-server): getJob return the correct job

This commit is contained in:
Julien Fontanet 2018-03-02 19:53:16 +01:00
parent 8f784162ea
commit 2b9ba69480

View File

@ -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
} }