Skip to content

Commit 9844201

Browse files
Update packages/api-gateway/src/modules/auth/auth.controller.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 2d54c72 commit 9844201

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

‎packages/api-gateway/src/modules/auth/auth.controller.ts‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,7 @@ export class AuthController implements OnModuleInit {
411411
const data: { keys: AuthCommonProto.ApiKey[]; count: number } =
412412
await lastValueFrom(obs);
413413

414-
console.debug('offset and limit', offset, limit);
415-
416-
try {
417-
const links = {
414+
const links = {
418415
first: encodeURI(`/auth/key/all?offset=${0}&limit=${limit}`),
419416
prev: encodeURI(
420417
`/auth/key/all?offset=${Math.max(offset - limit, 0)}&limit=${limit}`,
@@ -425,14 +422,11 @@ export class AuthController implements OnModuleInit {
425422
last: encodeURI(
426423
`/auth/key/all?offset=${Math.max(0, data.count - limit)}&limit=${limit}`,
427424
),
428-
};
429-
return new GetAllApiKeysResponse({
430-
keys: data.keys,
431-
links,
432-
});
433-
} catch (e) {
434-
console.debug(e);
435-
}
425+
};
426+
return new GetAllApiKeysResponse({
427+
keys: data.keys,
428+
links,
429+
});
436430
}
437431

438432
@Get('/test-auth')

0 commit comments

Comments
 (0)