Skip to content

Commit

Permalink
fix: review
Browse files Browse the repository at this point in the history
  • Loading branch information
cesco69 authored Feb 10, 2025
1 parent 7f52b4f commit c0e8bfa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/pg/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ function arrayString(val) {
// note: you can override this function to provide your own conversion mechanism
// for complex types, etc...
var prepareValue = function (val, seen) {
if (typeof val === 'object' || typeof val === 'undefined') {
// null and undefined are both null for postgres
if (val == null) {
return null
}
// null and undefined are both null for postgres
if (val == null) {
return null
}
if (typeof val === 'object') {
if (val instanceof Buffer) {
return val
}
Expand Down

0 comments on commit c0e8bfa

Please # to comment.