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

Method updateOne

apps/api/src/users/services/user.service.ts:39–49  ·  view source on GitHub ↗
(
    id: string,
    record: DeepPartial<User> | UpdateUserInput,
    opts?: UpdateOneOptions<User>,
  )

Source from the content-addressed store, hash-verified

37 }
38
39 async updateOne(
40 id: string,
41 record: DeepPartial<User> | UpdateUserInput,
42 opts?: UpdateOneOptions<User>,
43 ): Promise<User> {
44 const user = await this.findById(id, opts)
45 if (!user) {
46 throw new NotFoundException()
47 }
48 return await super.updateOne(id, record, opts)
49 }
50
51 async createAccountFromSignature(message: SiweMessage, externalApp: string | null) {
52 const user = await this.findOne({ address: getAddress(message.address) })

Callers 8

refreshAccountsMethod · 0.45
runMethod · 0.45
requestMigrationMethod · 0.45
updateViewerContactMethod · 0.45
verifyEmailMethod · 0.45

Calls 1

findByIdMethod · 0.80

Tested by

no test coverage detected