fix: still having 403 bit fixed some bugs
This commit is contained in:
@@ -9,12 +9,12 @@ import {
|
||||
|
||||
// Entrepreneurs API
|
||||
function requestProjectCreation(
|
||||
projectDetails: Project, // Replace 'any' with a proper type for project details if available
|
||||
projectDetails: Project,
|
||||
onSuccessHandler?: (response: AxiosResponse) => void,
|
||||
onErrorHandler?: (error: AxiosError) => void
|
||||
): void {
|
||||
axiosInstance
|
||||
.post("/entrepreneur/projects/request", projectDetails)
|
||||
.post("/entrepreneur/projects/request", projectDetails.toObject())
|
||||
.then((response) => {
|
||||
if (onSuccessHandler) {
|
||||
onSuccessHandler(response);
|
||||
@@ -32,12 +32,12 @@ function requestProjectCreation(
|
||||
}
|
||||
|
||||
function addSectionCell(
|
||||
sectionCellDetails: SectionCell, // Replace 'any' with a proper type for section cell details if available
|
||||
sectionCellDetails: SectionCell,
|
||||
onSuccessHandler?: (response: AxiosResponse) => void,
|
||||
onErrorHandler?: (error: AxiosError) => void
|
||||
): void {
|
||||
axiosInstance
|
||||
.post("/entrepreneur/sectionCells", sectionCellDetails.toPlainObject())
|
||||
.post("/entrepreneur/sectionCells", sectionCellDetails.toObject())
|
||||
.then((response) => {
|
||||
if (onSuccessHandler) {
|
||||
onSuccessHandler(response);
|
||||
|
Reference in New Issue
Block a user