MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / getUserData

Function getUserData

web/src/components/settings/PersonalSetting.js:177–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 };
176
177 const getUserData = async () => {
178 let res = await API.get(`/api/user/self`);
179 const { success, message, data } = res.data;
180 if (success) {
181 userDispatch({ type: 'login', payload: data });
182 } else {
183 showError(message);
184 }
185 };
186
187 const loadModels = async () => {
188 setModelsLoading(true);

Callers 2

PersonalSetting.jsFile · 0.70
saveNotificationSettingsFunction · 0.70

Calls 1

showErrorFunction · 0.90

Tested by

no test coverage detected