Add settings section for public domains (#14543)
As title https://github.com/user-attachments/assets/1c2adb14-0fc1-4623-88bc-10ff729c72a1
This commit is contained in:
+1
@@ -17,4 +17,5 @@ export enum FeatureFlagKey {
|
||||
IS_DATABASE_EVENT_TRIGGER_ENABLED = 'IS_DATABASE_EVENT_TRIGGER_ENABLED',
|
||||
IS_CALENDAR_VIEW_ENABLED = 'IS_CALENDAR_VIEW_ENABLED',
|
||||
IS_GROUP_BY_ENABLED = 'IS_GROUP_BY_ENABLED',
|
||||
IS_PUBLIC_DOMAIN_ENABLED = 'IS_PUBLIC_DOMAIN_ENABLED',
|
||||
}
|
||||
|
||||
+10
-1
@@ -1,4 +1,4 @@
|
||||
import { Args, Mutation, Resolver } from '@nestjs/graphql';
|
||||
import { Query, Args, Mutation, Resolver } from '@nestjs/graphql';
|
||||
import { UseFilters, UseGuards, UsePipes } from '@nestjs/common';
|
||||
import { InjectRepository } from '@nestjs/typeorm';
|
||||
|
||||
@@ -30,6 +30,15 @@ export class PublicDomainResolver {
|
||||
private readonly publicDomainService: PublicDomainService,
|
||||
) {}
|
||||
|
||||
@Query(() => [PublicDomainDTO])
|
||||
async findManyPublicDomains(
|
||||
@AuthWorkspace() currentWorkspace: Workspace,
|
||||
): Promise<PublicDomainDTO[]> {
|
||||
return await this.publicDomainRepository.find({
|
||||
where: { workspaceId: currentWorkspace.id },
|
||||
});
|
||||
}
|
||||
|
||||
@Mutation(() => PublicDomainDTO)
|
||||
async createPublicDomain(
|
||||
@Args() { domain }: PublicDomainInput,
|
||||
|
||||
Reference in New Issue
Block a user