Skip to content

Commit

Permalink
Fixed postgres remove callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Mar 11, 2024
1 parent 0ea40d9 commit a09c1f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databases/postgres_db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default class extends AbstractDatabase {
const functions:any = replaceVALs.map((v) => (cb:()=>{}) => this.db.query(this.upsertStatement as string, v, cb));

const removeFunction = (callback: ()=>{}) => {
if ((removeVALs.length == 1)) {
if (!(removeVALs.length < 1)) {
this.db.query(removeSQL, removeVALs, callback);
} else { callback(); }
};
Expand Down

0 comments on commit a09c1f0

Please sign in to comment.