Skip to content

Conversation

@MadsApollo
Copy link
Contributor

Added endpoint for updating organization by permissionIds.

@fcv-iteratorIt fcv-iteratorIt changed the title Feature/1583 move application Feature/IOT-1583: Move application Sep 12, 2024
Copy link
Contributor

@fcv-iteratorIt fcv-iteratorIt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bare et lille nitpick, godt lavet

@Header("Cache-Control", "none")
@ApiOperation({ summary: "Update application organization" })
@ApiBadRequestResponse()
async updateOrganization(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: Tror changeOrganization eller moveOrganization er mere sigende

checkIfUserHasAccessToApplication(req, id, ApplicationAccessScope.Write);
const application = await this.applicationService.updateOrganization(id, updateApplicationDto, req.user.userId);

AuditLog.success(ActionType.UPDATE, Application.name, req.user.userId, application.id, application.name);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Det bør også være et fail log hvis den fejler

@MadsApollo MadsApollo merged commit a022186 into stage Sep 13, 2024
@MadsApollo MadsApollo deleted the feature/1583-MoveApplication branch September 13, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants