Transform ApiResponse::error() into dynamic method

This commit is contained in:
Philipp 2021-11-12 20:04:47 +01:00
parent ea0f41ecf0
commit ebf56674f1
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
3 changed files with 5 additions and 5 deletions

View file

@ -60,7 +60,7 @@ class Activity extends BaseApi
}
DI::apiResponse()->exit('ok', ['ok' => $ok], $parameters['extension'] ?? null);
} else {
ApiResponse::error(500, 'Error adding activity', '', $parameters['extension'] ?? null);
DI::apiResponse()->error(500, 'Error adding activity', '', $parameters['extension'] ?? null);
}
}
}