Skip to content

Commit 77a081c

Browse files
committed
Fix lint errors and register ownershipRouter
1 parent 566a464 commit 77a081c

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/modules/activity/activity.service.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { fetchActivityFeed } from './activity.service';
2-
import { prisma } from '../../utils/prisma.utils';
32

43
describe('Activity Service', () => {
54
beforeAll(async () => {
@@ -8,7 +7,7 @@ describe('Activity Service', () => {
87
});
98

109
it('should return empty list when no activity exists', async () => {
11-
const [items, total] = await fetchActivityFeed({ limit: 10, offset: 0 });
10+
const [items] = await fetchActivityFeed({ limit: 10, offset: 0 });
1211
expect(Array.isArray(items)).toBe(true);
1312
// expect(total).toBe(0); // Depends on DB state
1413
});

src/modules/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ router.use(CREATORS_BASE, creatorsRouter);
1818
router.use('/metrics', metricsRouter);
1919
router.use('/admin', adminRouter);
2020
router.use('/activity', activityRouter);
21+
router.use('/ownership', ownershipRouter);
2122

2223
export default router;

src/modules/ownership/ownership.service.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { fetchOwnership, updateOwnership } from './ownership.service';
2-
import { prisma } from '../../utils/prisma.utils';
32

43
describe('Ownership Service', () => {
54
it('should return ownership record after update', async () => {

0 commit comments

Comments
 (0)