MCPcopy
hub / github.com/Unleash/unleash / update

Method update

src/lib/features/users/user-store.ts:104–109  ·  view source on GitHub ↗
(id: number, fields: IUserUpdateFields)

Source from the content-addressed store, hash-verified

102 }
103
104 async update(id: number, fields: IUserUpdateFields): Promise<User> {
105 await this.activeUsers()
106 .where('id', id)
107 .update(mapUserToColumns(fields));
108 return this.get(id);
109 }
110
111 async insert(user: ICreateUser): Promise<User> {
112 const emailHash = user.email

Callers 1

upsertMethod · 0.95

Calls 5

activeUsersMethod · 0.95
getMethod · 0.95
mapUserToColumnsFunction · 0.85
whereMethod · 0.80
updateMethod · 0.65

Tested by

no test coverage detected