From fb3e4903b78daf91faf11bd84469cb1f4192832c Mon Sep 17 00:00:00 2001 From: Moulika Kulkarni Date: Mon, 4 Dec 2023 19:52:14 +0530 Subject: [PATCH] refactor: API-response-refactor Signed-off-by: Moulika Kulkarni --- libs/user-activity/repositories/index.ts | 2 +- libs/user-activity/src/user-activity.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/user-activity/repositories/index.ts b/libs/user-activity/repositories/index.ts index dd66d72f3..c0a3d730e 100644 --- a/libs/user-activity/repositories/index.ts +++ b/libs/user-activity/repositories/index.ts @@ -23,7 +23,7 @@ export class UserActivityRepository { } - async getRecentActivities(userId: string, limit: number): Promise { + async getRecentActivities(userId: string, limit: number): Promise { return this.prisma.user_activity.findMany({ where: { userId diff --git a/libs/user-activity/src/user-activity.service.ts b/libs/user-activity/src/user-activity.service.ts index 76ec86c49..74f4f193d 100644 --- a/libs/user-activity/src/user-activity.service.ts +++ b/libs/user-activity/src/user-activity.service.ts @@ -15,7 +15,7 @@ export class UserActivityService { return this.userActivityRepository.logActivity(userId, orgId, action, details); } - async getUserActivity(userId: string, limit: number): Promise { + async getUserActivity(userId: string, limit: number): Promise { return this.userActivityRepository.getRecentActivities(userId, limit); } }