mirror of
https://github.com/AtHeartEngineering/bandada.git
synced 2026-01-09 16:38:12 -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()
|
||||
|
||||
@@ -133,7 +133,7 @@ export async function updateGroups(
|
||||
apiKey: string
|
||||
): Promise<Array<Group>> {
|
||||
const newConfig: any = {
|
||||
method: "put",
|
||||
method: "patch",
|
||||
data: {
|
||||
groupIds,
|
||||
groupsInfo: groupsUpdateDetails
|
||||
|
||||
Reference in New Issue
Block a user