feat: enhance sparepart database queries and sparepart number validation
This commit is contained in:
@@ -203,6 +203,10 @@ function buildDynamicUpdate(table, data, where) {
|
||||
setParts.push(`${key} = $${index++}`);
|
||||
values.push(value);
|
||||
}
|
||||
else if (key !== undefined && key !== null) {
|
||||
setParts.push(`${key} = $${index++}`);
|
||||
values.push(value);
|
||||
}
|
||||
}
|
||||
|
||||
if (setParts.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user