Add timestamp to subscription change response

This commit is contained in:
Jonathan Flueren 2021-10-17 16:42:10 +02:00 committed by thrillfall
parent 12a33ac002
commit 52b6d8e8a2

View File

@ -42,10 +42,12 @@ class SubscriptionChangeController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
*
* @return void
* @return JSONResponse
*/
public function create($add, $remove) {
public function create($add, $remove): JSONResponse {
$this->subscriptionChangeSaver->saveSubscriptionChanges($add, $remove, $this->userId);
return new JSONResponse(["timestamp" => time()]);
}
/**