mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Linting
This commit is contained in:
parent
b8a01cc848
commit
509e985061
@ -42,20 +42,20 @@ export class DimensionWebhooksService {
|
||||
|
||||
@POST
|
||||
@Path("room/:roomId/webhooks/new")
|
||||
public async newWebhook(@QueryParam("scalar_token") scalarToken: string, @PathParam("roomId") roomId: string, request: WebhookOptions): Promise<WebhookConfiguration> {
|
||||
public async newWebhook(@QueryParam("scalar_token") scalarToken: string, @PathParam("roomId") roomId: string, options: WebhookOptions): Promise<WebhookConfiguration> {
|
||||
const userId = await ScalarService.getTokenOwner(scalarToken);
|
||||
|
||||
const webhooks = new WebhooksBridge(userId);
|
||||
return webhooks.createWebhook(roomId, request);
|
||||
return webhooks.createWebhook(roomId, options);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("room/:roomId/webhooks/:hookId")
|
||||
public async updateWebhook(@QueryParam("scalar_token") scalarToken: string, @PathParam("roomId") roomId: string, @PathParam("hookId") hookId: string, request: WebhookOptions): Promise<WebhookConfiguration> {
|
||||
public async updateWebhook(@QueryParam("scalar_token") scalarToken: string, @PathParam("roomId") roomId: string, @PathParam("hookId") hookId: string, options: WebhookOptions): Promise<WebhookConfiguration> {
|
||||
const userId = await ScalarService.getTokenOwner(scalarToken);
|
||||
|
||||
const webhooks = new WebhooksBridge(userId);
|
||||
return webhooks.updateWebhook(roomId, hookId, request);
|
||||
return webhooks.updateWebhook(roomId, hookId, options);
|
||||
}
|
||||
|
||||
@DELETE
|
||||
|
Loading…
Reference in New Issue
Block a user