mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-26 01:37:55 +00:00
Removed community user
This commit is contained in:
@@ -6,17 +6,11 @@ import { CommunityRepository } from '@app/common/modules/community/repositories'
|
||||
export class CommunityPermissionService {
|
||||
constructor(private readonly communityRepository: CommunityRepository) {}
|
||||
|
||||
async checkUserPermission(
|
||||
communityUuid: string,
|
||||
userUuid: string,
|
||||
): Promise<void> {
|
||||
async checkUserPermission(communityUuid: string): Promise<void> {
|
||||
try {
|
||||
const communityData = await this.communityRepository.findOne({
|
||||
where: {
|
||||
uuid: communityUuid,
|
||||
users: {
|
||||
uuid: userUuid,
|
||||
},
|
||||
},
|
||||
relations: ['users'],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user