mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-14 21:21:56 +03:00
9293b7d782
https://github.com/StanGirard/quivr/issues/1361 https://github.com/StanGirard/quivr/assets/63923024/cc4b1c0a-363a-49f3-8306-181151554b34 --------- Co-authored-by: Zineb El Bachiri <100568984+gozineb@users.noreply.github.com>
17 lines
479 B
TypeScript
17 lines
479 B
TypeScript
import { AxiosInstance } from "axios";
|
|
|
|
import { Onboarding } from "@/lib/types/Onboarding";
|
|
|
|
export const getOnboarding = async (
|
|
axiosInstance: AxiosInstance
|
|
): Promise<Onboarding> => {
|
|
return (await axiosInstance.get<Onboarding>("/onboarding")).data;
|
|
};
|
|
|
|
export const updateOnboarding = async (
|
|
onboarding: Partial<Onboarding>,
|
|
axiosInstance: AxiosInstance
|
|
): Promise<Onboarding> => {
|
|
return (await axiosInstance.put<Onboarding>("/onboarding", onboarding)).data;
|
|
};
|