pass "me" in a few places that lack it

This commit is contained in:
Hazelnoot 2025-06-22 15:34:37 -04:00
parent 7f547a8c10
commit 2e61fafe57
8 changed files with 9 additions and 9 deletions

View file

@ -46,7 +46,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
throw new ApiError(meta.errors.noSuchRoom);
}
if (!await this.chatService.hasPermissionToDeleteRoom(me.id, room)) {
if (!await this.chatService.hasPermissionToDeleteRoom(me, room)) {
throw new ApiError(meta.errors.noSuchRoom);
}