Remove misplaced argument in error type creation

master
Sven Slootweg 3 years ago
parent 6fbac562af
commit 888a023383

@ -6,7 +6,7 @@ const pgErrorCodes = require("pg-error-codes");
const DatabaseError = require("../database-error.js");
const getValues = require("../get-values");
let NotNullConstraintViolationError = create(DatabaseError, "NotNullConstraintViolationError", { inheritsFrom: DatabaseError });
let NotNullConstraintViolationError = create("NotNullConstraintViolationError", { inheritsFrom: DatabaseError });
let messageRegex = /^(.+) - null value in column "([^"]+)" violates not-null constraint$/;

Loading…
Cancel
Save