Add missing function in adapter.

This commit is contained in:
Dillon Kearns 2021-12-28 15:38:07 -08:00
parent e4e20646c5
commit bf98a76aed

View File

@ -214,6 +214,14 @@ function reqToJson(req, requestTime) {
jsonBody: jsonBody,
};
}
function paramsToObject(entries) {
const result = {};
for (const [key, value] of entries) {
result[key] = value;
}
return result;
}
`;
}