Skip to content

Commit

Permalink
fix(sql): do not serialize db values from custom types
Browse files Browse the repository at this point in the history
Closes #372
  • Loading branch information
Martin Adamek committed Mar 14, 2020
1 parent d4bda99 commit 894e055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/query/QueryBuilderHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export class QueryBuilderHelper {
if (meta && meta.properties[k]) {
const prop = meta.properties[k];

if (Array.isArray(data[k]) || (Utils.isObject(data[k]) && !(data[k] instanceof Date))) {
if (!prop.customType && (Array.isArray(data[k]) || Utils.isObject(data[k], [Date]))) {
data[k] = JSON.stringify(data[k]);
}

Expand Down

0 comments on commit 894e055

Please sign in to comment.