Skip to content

Commit 0d361d5

Browse files
authored
Merge pull request #876 from Rahul-R79/chore/fix-unused-variables
chore: remove unused variables and imports
2 parents 64644d1 + 1499896 commit 0d361d5

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.changeset/fix-unused-variables.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"manifest": patch
3+
---
4+
5+
Remove unused variables

packages/backend/src/analytics/services/agent-analytics.service.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ describe('AgentAnalyticsService', () => {
77
let service: AgentAnalyticsService;
88
let mockGetRawOne: jest.Mock;
99
let mockGetRawMany: jest.Mock;
10-
let qbCallIndex: number;
1110

1211
const scope = { tenantId: 't1', agentId: 'a1' };
1312

1413
beforeEach(async () => {
1514
mockGetRawOne = jest.fn();
1615
mockGetRawMany = jest.fn();
17-
qbCallIndex = 0;
1816

1917
const mockQb = {
2018
select: jest.fn().mockReturnThis(),

packages/backend/src/auth/auth.instance.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ if (!isLocalMode && nodeEnv !== 'test' && (!betterAuthSecret || betterAuthSecret
3131
throw new Error('BETTER_AUTH_SECRET must be set to a value of at least 32 characters');
3232
}
3333

34-
import { getLocalAuthSecret } from '../common/constants/local-mode.constants';
3534

3635
function buildTrustedOrigins(): string[] {
3736
const origins: string[] = [];

packages/backend/src/auth/local-auth.guard.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jest.mock('../common/constants/local-mode.constants', () => ({
77
import { ExecutionContext } from '@nestjs/common';
88
import { Reflector } from '@nestjs/core';
99
import { LocalAuthGuard } from './local-auth.guard';
10-
import { IS_PUBLIC_KEY } from '../common/decorators/public.decorator';
1110
import { readLocalNotificationEmail } from '../common/constants/local-mode.constants';
1211

1312
function createMockContext(overrides: {

packages/backend/src/notifications/services/notification-rules.service.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ describe('NotificationRulesService (sql.js / local mode)', () => {
511511

512512
await service.deleteRule('user-1', 'r1');
513513

514-
const deleteCall = mockQuery.mock.calls[2]; // verifyOwnership(2 queries) then DELETE
514+
// verifyOwnership(2 queries) then DELETE
515515
// The DELETE should use ? placeholder
516516
const allCalls = mockQuery.mock.calls.map((c: unknown[]) => c[0] as string);
517517
const deleteQuery = allCalls.find((sql) => sql.includes('DELETE'));

0 commit comments

Comments
 (0)