fix: refs #4988 agency hook
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Pablo Natek 2024-04-26 08:39:05 +02:00
parent 4693ba13fa
commit 51c42d09b2
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
let UserError = require('vn-loopback/util/user-error');
const UserError = require('vn-loopback/util/user-error');
module.exports = Self => {
Self.rewriteDbError(function(err) {
if (err.code === 'ER_DUP_ENTRY')