Commit 230ac792 authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes parsing of the response data in the member router

parent 507dd73f
......@@ -134,7 +134,7 @@ export class MemberRouter extends AbstractRouter {
@Put('/response')
public async addResponse(
@HeaderParam('authorization') token: string, //
@BodyParam('response', { required: false }) value: Array<number> | string | number, //
@BodyParam('response', { required: false }) value: any, //
): Promise<IMessage> {
if (!Array.isArray(value) && !['string', 'number'].includes(typeof value)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment