mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-09 20:58:08 -05:00
fix: missing return statement for removeGroup(s) API SDK method
This commit is contained in:
@@ -120,14 +120,20 @@ export class GroupsController {
|
||||
|
||||
if (apiKey) {
|
||||
await this.groupsService.removeGroupsWithAPIKey(groupIds, apiKey)
|
||||
} else if (req.session.adminId) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
if (req.session.adminId) {
|
||||
await this.groupsService.removeGroupsManually(
|
||||
groupIds,
|
||||
req.session.adminId
|
||||
)
|
||||
} else {
|
||||
throw new NotImplementedException()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
throw new NotImplementedException()
|
||||
}
|
||||
|
||||
@Delete(":group")
|
||||
@@ -145,14 +151,19 @@ export class GroupsController {
|
||||
|
||||
if (apiKey) {
|
||||
await this.groupsService.removeGroupWithAPIKey(groupId, apiKey)
|
||||
} else if (req.session.adminId) {
|
||||
|
||||
return
|
||||
}
|
||||
if (req.session.adminId) {
|
||||
await this.groupsService.removeGroupManually(
|
||||
groupId,
|
||||
req.session.adminId
|
||||
)
|
||||
} else {
|
||||
throw new NotImplementedException()
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
throw new NotImplementedException()
|
||||
}
|
||||
|
||||
@Patch()
|
||||
|
||||
Reference in New Issue
Block a user