fix error with no map

pull/192/head^2
Ben Phelps 2 years ago
parent d7a161c088
commit cf41e988eb

@ -24,7 +24,7 @@ export default async function genericProxyHandler(req, res, maps) {
});
let resultData = data;
if (maps[endpoint]) {
if (maps?.[endpoint]) {
resultData = maps[endpoint](data);
}

Loading…
Cancel
Save