MCPcopy Create free account
hub / github.com/msgbyte/tailchat / modifyUserField

Function modifyUserField

client/shared/model/user.ts:375–385  ·  view source on GitHub ↗
(
  fieldName: AllowedModifyField,
  fieldValue: unknown
)

Source from the content-addressed store, hash-verified

373 */
374type AllowedModifyField = 'nickname' | 'avatar';
375export async function modifyUserField(
376 fieldName: AllowedModifyField,
377 fieldValue: unknown
378): Promise<UserBaseInfo> {
379 const { data } = await request.post('/api/user/updateUserField', {
380 fieldName,
381 fieldValue,
382 });
383
384 return data;
385}
386
387export async function modifyUserExtra(
388 fieldName: string,

Callers 1

Account.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected