Fix RoomUpdateError roomId argument typo (#123)

We were clearly in the process of deleting the
member decleration to just have the decleration be in the constructor.

When we were distracted, leaving a property named `readonly`, which
shouldn't be possible imo, need to add some rule for that prompto.
This commit is contained in:
Gnuxie
2023-09-12 11:57:50 +01:00
committed by GitHub
parent 272d81946b
commit 69b7209739
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ export class ProtectedRoomsSet {
errors: IRoomUpdateError[],
renderOptions: { title?: string, noErrorsText?: string }
): Promise<void> {
printActionResult(this.client, this.managementRoomId, errors, renderOptions);
await printActionResult(this.client, this.managementRoomId, errors, renderOptions);
}
public async unbanUser(user: string): Promise<IRoomUpdateError[]> {
+1 -3
View File
@@ -48,9 +48,7 @@ export class PermissionError extends CommandError implements IRoomUpdateError {
}
export class RoomUpdateException extends CommandException implements IRoomUpdateError {
roomId: string;
constructor(public readonly: string, ...args: ConstructorParameters<typeof CommandException>) {
constructor(public readonly roomId: string, ...args: ConstructorParameters<typeof CommandException>) {
super(...args);
}