MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / findOne

Method findOne

backend/api/src/users/users.service.ts:40–51  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

38 }
39
40 async findOne(id: string): Promise<User> {
41 const user = await this.usersRepository.findOne({
42 where: { id },
43 relations: ['subscription'],
44 });
45
46 if (!user) {
47 throw new NotFoundException('User not found');
48 }
49
50 return user;
51 }
52
53 async findByEmail(email: string): Promise<User | null> {
54 return this.usersRepository.findOne({

Callers 14

updateMethod · 0.95
findByEmailMethod · 0.45
signupMethod · 0.45
refreshAccessTokenMethod · 0.45
validateRefreshTokenMethod · 0.45
validateMethod · 0.45
createConnectionMethod · 0.45
getConnectionMethod · 0.45
checkCreditsMethod · 0.45
recordUsageMethod · 0.45
getRemainingCreditsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected