mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Simplify syntax
This commit is contained in:
parent
2218e833bc
commit
9b64c2e550
|
@ -150,14 +150,7 @@ export class DatabaseExportService {
|
|||
if (this.dbType === 'postgresdb') return;
|
||||
|
||||
if (this.dbType === 'sqlite' && column.type === Boolean) {
|
||||
const value = row[column.propertyName];
|
||||
|
||||
strict(
|
||||
value === 1 || value === 0,
|
||||
'Expected boolean column in sqlite to contain number `1` or `0`',
|
||||
);
|
||||
|
||||
row[column.propertyName] = value === 1;
|
||||
row[column.propertyName] = Boolean(row[column.propertyName]);
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue