Skip to content
Snippets Groups Projects
Commit 2d61e40a authored by Erkan Karabulut's avatar Erkan Karabulut
Browse files

remove threshold attribute check while creating a service request in tsmatch engine

parent 26affdf2
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ export class APITaskController extends Controller {
private _generateRequests(message) {
let payload = message[1];
message = JSON.parse(payload.toString());
if (message.hasOwnProperty("featureOfInterest") && message.hasOwnProperty("unitOfMeasurement") && message.hasOwnProperty("creatorId") && message.hasOwnProperty("threshold") && message.hasOwnProperty("location") && message.hasOwnProperty("uuid") && message.uuid !== undefined && message.location !== undefined && message.threshold !== undefined && message.creatorId !== undefined && message.unitOfMeasurement !== undefined && message.featureOfInterest !== undefined) {
if (message.hasOwnProperty("featureOfInterest") && message.hasOwnProperty("unitOfMeasurement") && message.hasOwnProperty("creatorId") && message.hasOwnProperty("location") && message.hasOwnProperty("uuid") && message.uuid !== undefined && message.location !== undefined && message.threshold !== undefined && message.creatorId !== undefined && message.unitOfMeasurement !== undefined && message.featureOfInterest !== undefined) {
// tslint:disable-next-line: max-line-length
let serviceRequest = this._createRequest(message);
RequestRepository.insertRequest(this._dbCtx, serviceRequest).then(result => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment