Skip to content

Commit

Permalink
add missed return
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Nov 3, 2023
1 parent d0601a9 commit 85b323a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/server/handlers/sthGetDataHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ function getDataHandler(request, reply, replyHandler) {
}
}
}
getRawData(request, reply, replyHandler);
return getRawData(request, reply, replyHandler);
} else if (request.query.aggrMethod && request.query.aggrPeriod) {
// Aggregated data is requested
getAggregatedData(request, reply, replyHandler);
return getAggregatedData(request, reply, replyHandler);
} else {
message =
'A combination of the following query params is required: lastN, hLimit and hOffset, ' +
Expand Down
2 changes: 1 addition & 1 deletion lib/server/handlers/sthGetDataHandlerV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function getDataHandler(request, reply) {
request.params.entityType = request.query.type;
request.params.version = 2;

sthGetDataHandlerV1(request, null, replyHandler);
return sthGetDataHandlerV1(request, null, replyHandler);
}

module.exports = getDataHandler;

0 comments on commit 85b323a

Please sign in to comment.