Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
84 changes: 84 additions & 0 deletions build_errors.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@

> truth-bounty_backend@0.0.1 build
> nest build

src/identity/identity.controller.ts:36:63 - error TS2554: Expected 2 arguments, but got 3.

36 return this.identityService.unlinkWallet(userId, address, chain);
   ~~~~~
src/identity/identity.service.ts:12:10 - error TS2305: Module '"@prisma/client"' has no exported member 'Prisma'.

12 import { Prisma, User, Wallet } from '@prisma/client';
   ~~~~~~
src/identity/identity.service.ts:12:18 - error TS2305: Module '"@prisma/client"' has no exported member 'User'.

12 import { Prisma, User, Wallet } from '@prisma/client';
   ~~~~
src/identity/identity.service.ts:12:24 - error TS2305: Module '"@prisma/client"' has no exported member 'Wallet'.

12 import { Prisma, User, Wallet } from '@prisma/client';
   ~~~~~~
src/identity/identity.service.ts:53:50 - error TS2322: Type '{}' is not assignable to type '(Without<UserCreateInput, UserUncheckedCreateInput> & UserUncheckedCreateInput) | (Without<...> & UserCreateInput)'.

53 const user = await this.prisma.user.create({ data: {} });
   ~~~~

src/generated/client/models/User.ts:1449:3
1449 data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
   ~~~~
The expected type comes from property 'data' which is declared here on type '{ select?: UserSelect<DefaultArgs> | null | undefined; omit?: UserOmit<DefaultArgs> | null | undefined; include?: UserInclude<DefaultArgs> | null | undefined; data: (Without<...> & UserUncheckedCreateInput) | (Without<...> & UserCreateInput); }'
src/identity/identity.service.ts:226:18 - error TS2353: Object literal may only specify known properties, and 'createdAt' does not exist in type 'WalletOrderByWithRelationInput | WalletOrderByWithRelationInput[]'.

226 orderBy: { createdAt: 'asc' },
   ~~~~~~~~~
src/identity/identity.service.ts:280:7 - error TS18046: 'err' is of type 'unknown'.

280 err.code === 'P2002'
   ~~~
src/jobs/jobs.processor.ts:19:32 - error TS2341: Property 'computeScores' is private and only accessible within class 'JobsService'.

19 await this.jobsService.computeScores();
   ~~~~~~~~~~~~~
src/jobs/jobs.processor.ts:22:32 - error TS2341: Property 'computeReputation' is private and only accessible within class 'JobsService'.

22 await this.jobsService.computeReputation();
   ~~~~~~~~~~~~~~~~~
src/jobs/jobs.service.ts:93:30 - error TS2339: Property 'sybilResistanceService' does not exist on type 'JobsService'.

93 const count = await this.sybilResistanceService.cleanupScoreHistory();
   ~~~~~~~~~~~~~~~~~~~~~~
src/jobs/jobs.service.ts:166:65 - error TS2345: Argument of type 'AggregationVerification[]' is not assignable to parameter of type 'Verification[]'.
Type 'AggregationVerification' is not assignable to type 'Verification'.
Types of property 'userId' are incompatible.
Type 'string | null' is not assignable to type 'string'.
Type 'null' is not assignable to type 'string'.

166 const agg = this.aggregationService.aggregate(claim.id, verifications);
   ~~~~~~~~~~~~~
src/modules/sybil/controllers/sybil-admin.controller.ts:8:27 - error TS2307: Cannot find module '../../auth/guards/auth.guard' or its corresponding type declarations.

8 import { AuthGuard } from '../../auth/guards/auth.guard';
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/modules/sybil/controllers/sybil-admin.controller.ts:9:28 - error TS2307: Cannot find module '../../auth/guards/roles.guard' or its corresponding type declarations.

9 import { RolesGuard } from '../../auth/guards/roles.guard';
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/modules/sybil/controllers/sybil-admin.controller.ts:10:23 - error TS2307: Cannot find module '../../auth/decorators/roles.decorator' or its corresponding type declarations.

10 import { Roles } from '../../auth/decorators/roles.decorator';
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/modules/sybil/services/sybil-score.service.ts:54:53 - error TS2353: Object literal may only specify known properties, and 'sybilScore' does not exist in type '_QueryDeepPartialEntity<User>'.

54 await this.userRepo.update(user.id, { sybilScore: score });
   ~~~~~~~~~~
src/modules/sybil/services/sybil-score.service.ts:89:14 - error TS2339: Property 'isVerified' does not exist on type 'User'.

89 if (user.isVerified) score += 50;
   ~~~~~~~~~~
src/utils/confidence.ts:3:8 - error TS2307: Cannot find module '../constants/protocol' or its corresponding type declarations.

3 } from '../constants/protocol';
   ~~~~~~~~~~~~~~~~~~~~~~~

Found 17 error(s).

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/7fb81d5ab67a72fe3256850a5a2d5c3c.json"
}
Loading