Fix bug in "isPrimitive" function

This commit is contained in:
Matias Chomicki 2023-06-08 14:41:54 +02:00
parent 7e26a5aa50
commit 27f9874cce

View File

@ -835,7 +835,7 @@ export class ElasticDatasource
if (obj === null || obj === undefined) { if (obj === null || obj === undefined) {
return true; return true;
} }
if (['string', 'number', 'boolean'].some((type) => type === typeof true)) { if (['string', 'number', 'boolean'].some((type) => type === typeof obj)) {
return true; return true;
} }