From 92486a01acc9b9af9455783741fdc2393fa5b9bd Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 31 Mar 2020 14:31:10 +0200 Subject: [PATCH] Switch to base handler --- src/controllers/LikesController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/LikesController.ts b/src/controllers/LikesController.ts index eba2aee..1e5ac65 100644 --- a/src/controllers/LikesController.ts +++ b/src/controllers/LikesController.ts @@ -1,9 +1,9 @@ -import { RequestHandler } from "../entities/RequestHandler"; import { LikesType, LikesHelper } from "../helpers/LikesHelper"; import { UserHelper } from "../helpers/UserHelper"; import { GroupsAccessLevel } from "../entities/Group"; import { UserLike } from "../entities/UserLike"; import { NotificationsHelper } from "../helpers/NotificationsHelper"; +import { BaseRequestsHandler } from "../entities/BaseRequestsHandler"; /** * Likes controller @@ -17,7 +17,7 @@ export class LikesController { * * @param h Request handler */ - public static async Update(h: RequestHandler) { + public static async Update(h: BaseRequestsHandler) { const req_type = h.postString("type"); const is_linking = h.postBool("like"); @@ -73,7 +73,7 @@ export class LikesController { await LikesHelper.Update(h.getUserId(), is_linking, id, type); - h.success(); + h.success(""); }