Chat settings in Super Admin and changing the chat title and position.
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
||||
UpdatePlatformOrganizationDto,
|
||||
UpdatePlatformStatusDto,
|
||||
} from './dto';
|
||||
import { UpdateConversationSettingsDto } from '../conversations/dto';
|
||||
import { PlatformAuthGuard } from './platform-auth.guard';
|
||||
import type { PlatformActor } from './platform-jwt.strategy';
|
||||
import { PlatformService } from './platform.service';
|
||||
@@ -129,6 +130,19 @@ export class PlatformController {
|
||||
return this.platform.updateOrganizationModules(id, dto);
|
||||
}
|
||||
|
||||
@Get('organizations/:id/conversations/settings')
|
||||
getOrganizationConversationSettings(@Param('id') id: string) {
|
||||
return this.conversations.getSettings(id);
|
||||
}
|
||||
|
||||
@Patch('organizations/:id/conversations/settings')
|
||||
updateOrganizationConversationSettings(
|
||||
@Param('id') id: string,
|
||||
@Body() dto: UpdateConversationSettingsDto,
|
||||
) {
|
||||
return this.conversations.upsertSettingsForOrganization(id, dto);
|
||||
}
|
||||
|
||||
@Patch('memberships/:id')
|
||||
setMembershipActive(
|
||||
@Param('id') id: string,
|
||||
|
||||
Reference in New Issue
Block a user