Commit 1af27442 authored by nanahira's avatar nanahira

fix

parent 279c8e31
Pipeline #4778 passed with stages
in 3 minutes and 20 seconds
......@@ -29,11 +29,11 @@ export class DepotDto implements DepotLike {
const value = this[field];
if (!value || value === 'generic') {
return new Brackets((qb) => {
qb.where(`build.${field} = 'generic'`);
qb.where(`depot.${field} = 'generic'`);
});
} else {
return new Brackets((qb) => {
qb.where(`build.${field} = 'generic'`).orWhere(`build.${field} = :${field}`, { [field]: value });
qb.where(`depot.${field} = 'generic'`).orWhere(`depot.${field} = :${field}`, { [field]: value });
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment