MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / updateConfig

Function updateConfig

client/src/api/config/queries.ts:65–75  ·  view source on GitHub ↗
(config: AppConfig)

Source from the content-addressed store, hash-verified

63};
64
65const updateConfig = async (config: AppConfig) => {
66 return await axios
67 .put(`/api/config`, config)
68 .then((response) => {
69 return Promise.resolve(config as AppConfig);
70 })
71 .catch((error) => {
72 console.error(error);
73 throw new Error('Failed to update metadata.');
74 });
75};
76
77export const useUpdateConfig = () => {
78 let client = useQueryClient();

Callers 1

useUpdateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected