Skip to content

Commit

Permalink
missing options flag
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Gurtzick <[email protected]>
  • Loading branch information
wzrdtales committed Sep 10, 2023
1 parent 8483eb7 commit 00aa56b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ var PgDriver = Base.extend({
if (typeof options === 'function') {
callback = options;
options = {};
} else if (!options) {
options = {};
}

if (options.ifNotExists) {
Expand Down Expand Up @@ -126,7 +128,7 @@ var PgDriver = Base.extend({
var ifExists = '';

if (typeof options === 'function') callback = options;
else {
else if (options) {
ifExists = options.ifExists === true ? 'IF EXISTS' : '';
}

Expand Down

0 comments on commit 00aa56b

Please sign in to comment.