fixed typo
continuous-integration/drone/pr Build is passing Details

ref #49
This commit is contained in:
Nicolai Ort 2020-12-22 20:29:18 +01:00
parent c34bde7d4f
commit 5d75f70296
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ export class UserGroupController {
@ResponseSchema(ResponseUserGroup)
@ResponseSchema(ResponseEmpty, { statusCode: 204 })
@OnUndefined(204)
@OpenAPI({ description: 'Delete the group whose id you provided. <br> If there are any permissions directly granted to the group they will get deleted as well. <br> Users associated with this group won\'t get deletet - just deassociated. <br> If no group with this id exists it will just return 204(no content).' })
@OpenAPI({ description: 'Delete the group whose id you provided. <br> If there are any permissions directly granted to the group they will get deleted as well. <br> Users associated with this group won\'t get deleted - just deassociated. <br> If no group with this id exists it will just return 204(no content).' })
async remove(@Param("id") id: number, @QueryParam("force") force: boolean) {
let group = await this.userGroupsRepository.findOne({ id: id }, { relations: ["permissions"] });
if (!group) { return null; }