MCPcopy Create free account
hub / github.com/chainjet/platform / constructor

Method constructor

apps/api/src/users/services/user.service.ts:19–24  ·  view source on GitHub ↗
(
    @InjectModel(User) protected readonly model: ReturnModelType<typeof User>,
    private readonly userEventService: UserEventService,
  )

Source from the content-addressed store, hash-verified

17 protected readonly logger = new Logger(UserService.name)
18
19 constructor(
20 @InjectModel(User) protected readonly model: ReturnModelType<typeof User>,
21 private readonly userEventService: UserEventService,
22 ) {
23 super(model)
24 }
25
26 async incrementOperationsUsed(userId: ObjectId, success: boolean, creditsUsed?: number): Promise<void> {
27 if (!creditsUsed || creditsUsed < 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected