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:
@@ -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 +")");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user