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
1 changed files with 4 additions and 2 deletions

View File

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