Skip to content

Commit 230ed2e

Browse files
committed
fixed app related bug
1 parent 06445ed commit 230ed2e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app-auth/repositories/app.repository.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ export class AppRepository {
142142
'find() method: starts, finding list of apps from db',
143143
'AppRepository',
144144
);
145-
146145
const pipeline = [
147-
// { $match: { userId: appsFilterQuery.userId } },
146+
{ $match: { userId: appsFilterQuery.userId } },
148147
{
149148
$facet: {
150149
totalCount: [{ $count: 'total' }],

src/app-auth/services/app-auth.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ export class AppAuthService {
282282
if (userRole === UserRole.SUPER_ADMIN) {
283283
app = await this.appRepository.find({
284284
paginationOption,
285+
userId
285286
});
286287
} else {
287288
const basePipeline = this.appRepository.appDataProjectPipelineToReturn();

0 commit comments

Comments
 (0)