-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/IOT-1209-MoveGateway #256
Conversation
@Body() dto: UpdateGatewayOrganizationDto | ||
): Promise<DbGateway> { | ||
checkIfUserHasAccessToOrganization(req, dto.organizationId, OrganizationAccessScope.GatewayWrite); | ||
const gateway = await this.chirpstackGatewayService.updateOrganization(id, dto, req); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jeg skal have et fail log.
…e, with default permissions if none specified.
where: { id: gatewayId }, | ||
relations: [nameof<DbGateway>("organization")], | ||
}); | ||
checkIfUserHasAccessToOrganization(req, dto.organizationId, OrganizationAccessScope.GatewayWrite); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Du har allerede lavet access checket i controlleren, så ingen grund til at gøre det igen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var lidt i tvivl om hvordan deres decorators helt præcis er stykket sammen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah kan se at kaldet faktisk også er i controlleren , gotcha
@@ -7,6 +7,9 @@ export class UpdateGatewayContentsDto extends OmitType(GatewayContentsDto, ["gat | |||
@ApiHideProperty() | |||
gatewayId: string; | |||
|
|||
@ApiHideProperty() | |||
organizationId?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bruges den her nogen steder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nej, havde en ide om at modificere update dto'en, til at både opdatere chirpstack og db'en. jeg fjerner den.
…y of update contents dto.
No description provided.