fix: fkeys on device_id
This commit is contained in:
parent
741eac9484
commit
2b2738c204
3 changed files with 15 additions and 1 deletions
|
|
@ -49,6 +49,7 @@ const getDefaultSchema = () => 'ERROR_SCHEMA'
|
|||
const searchPathWrapper = (t, cb) => {
|
||||
return t.none('SET search_path TO $1:name', [getSchema()])
|
||||
.then(cb.bind(t, t))
|
||||
.catch(logger.error)
|
||||
.finally(() => t.none('SET search_path TO $1:name', [getDefaultSchema()]))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue