Skip to content

Commit

Permalink
Merge pull request #328 from credebl/api-response
Browse files Browse the repository at this point in the history
refactor:Api response
  • Loading branch information
nishad-ayanworks authored Dec 4, 2023
2 parents 7b7c963 + fc32c13 commit 69f9de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/user-activity/repositories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class UserActivityRepository {
}


async getRecentActivities(userId: string, limit: number): Promise<user_activity[]> {
async getRecentActivities(userId: string, limit: number): Promise<object[]> {
return this.prisma.user_activity.findMany({
where: {
userId
Expand Down
2 changes: 1 addition & 1 deletion libs/user-activity/src/user-activity.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class UserActivityService {
return this.userActivityRepository.logActivity(userId, orgId, action, details);
}

async getUserActivity(userId: string, limit: number): Promise<user_activity[]> {
async getUserActivity(userId: string, limit: number): Promise<object[]> {
return this.userActivityRepository.getRecentActivities(userId, limit);
}
}

0 comments on commit 69f9de3

Please sign in to comment.