MCPcopy
hub / github.com/fccview/jotty / getUserIndex

Function getUserIndex

app/_server/actions/users/helpers.ts:60–63  ·  view source on GitHub ↗
(username: string)

Source from the content-addressed store, hash-verified

58};
59
60export const getUserIndex = async (username: string): Promise<number> => {
61 const allUsers = await readJsonFile(USERS_FILE);
62 return allUsers.findIndex((user: User) => user.username === username);
63};
64
65export const getUserByItem = async (
66 itemID: string,

Callers 5

_deleteUserCoreFunction · 0.90
_updateUserCoreFunction · 0.90
updateUserSettingsFunction · 0.90
togglePinFunction · 0.90
updatePinnedOrderFunction · 0.90

Calls 1

readJsonFileFunction · 0.90

Tested by

no test coverage detected