mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
fix possible exception
This commit is contained in:
@@ -105,7 +105,7 @@ module.exports = function(srf, logger) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const uri = parseUri(req.uri);
|
const uri = parseUri(req.uri);
|
||||||
const arr = /context-(.*)/.exec(uri.user);
|
const arr = /context-(.*)/.exec(uri?.user);
|
||||||
if (arr) {
|
if (arr) {
|
||||||
// this is a transfer from another feature server
|
// this is a transfer from another feature server
|
||||||
const {retrieveKey, deleteKey} = srf.locals.dbHelpers;
|
const {retrieveKey, deleteKey} = srf.locals.dbHelpers;
|
||||||
|
|||||||
Reference in New Issue
Block a user