Skip to content

Commit

Permalink
implemented org and user to bydefault public (#87)
Browse files Browse the repository at this point in the history
Signed-off-by: @nishad.shirsat <[email protected]>
Signed-off-by: KulkarniShashank <[email protected]>
  • Loading branch information
nishad-ayanworks authored and KulkarniShashank committed Sep 11, 2024
1 parent 3c9e744 commit d1732b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion apps/organization/repositories/organization.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export class OrganizationRepository {
logoUrl: createOrgDto.logo,
description: createOrgDto.description,
website: createOrgDto.website,
orgSlug: createOrgDto.orgSlug
orgSlug: createOrgDto.orgSlug,
publicProfile: true

}
});
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions apps/organization/src/organization.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export class OrganizationService {
try {

const organizationExist = await this.organizationRepository.checkOrganizationNameExist(updateOrgDto.name);

if (organizationExist) {
if (organizationExist && organizationExist.id !== Number(updateOrgDto.orgId)) {
throw new ConflictException(ResponseMessages.organisation.error.exists);
}

Expand Down
3 changes: 2 additions & 1 deletion apps/user/repositories/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class UserRepository {
data: {
username: userEmailVerificationDto.username,
email: userEmailVerificationDto.email,
verificationCode: verifyCode.toString()
verificationCode: verifyCode.toString(),
publicProfile: true
}
});

Expand Down

0 comments on commit d1732b3

Please sign in to comment.