mirror of
https://github.com/plankanban/planka.git
synced 2025-12-19 01:12:02 +03:00
ref: Little refactoring
This commit is contained in:
@@ -21,8 +21,8 @@ const makeWhereQueryBuilder = (Model) => (criteria) => {
|
||||
throw new Error('Unknown column');
|
||||
}
|
||||
|
||||
parts.push(`${columnName} = $${index + 1}`);
|
||||
values.push(value);
|
||||
parts.push(`${columnName} = $${values.length}`);
|
||||
}
|
||||
|
||||
return [parts.join(' AND '), values];
|
||||
|
||||
Reference in New Issue
Block a user