1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2025-09-19 05:38:48 +00:00

Can update following state of a conversation

This commit is contained in:
2019-11-30 12:24:19 +01:00
parent bd19411a48
commit 4406b8c882
5 changed files with 119 additions and 1 deletions

View File

@@ -52,6 +52,15 @@ export class RequestHandler {
return param;
}
/**
* Check out whether a post parameter is present into the request or not
*
* @param name The name of the post field to check
*/
public hasPostParameter(name: string) : boolean {
return this.getPostParam(name) != undefined;
}
/**
* Get an email address included in a post request
*
@@ -233,7 +242,7 @@ export class RequestHandler {
this.responseSent = true;
if(should_throw)
throw Error("Could not complete request! ("+ message +")");
throw Error("Could not complete request! ("+ message +")");
}
/**