Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove this #4821

Open
github-actions bot opened this issue Apr 25, 2024 · 0 comments
Open

remove this #4821

github-actions bot opened this issue Apr 25, 2024 · 0 comments
Labels

Comments

@github-actions
Copy link
Contributor

      errorHandler();
      return of<string>(`${error}`);
    }),
  ); */
  return httpRequest(http, createArchiveUrl, 'POST', formData, new HttpHeaders({ Accept: 'application/json' }));
}

export function _SubmitFormData(
  formData: FormData,
  http: HttpClient,
  errorHandler: () => void,
): Observable<string> | null {
  const endpoints = new Endpoints();
  const headers = new HttpHeaders({ Accept: 'application/json' });

  // TODO: remove this
  /* return http.post<string>(createArchiveUrl, formData, httpOptions).pipe(
    catchError((error: HttpErrorResponse): Observable<string> => {
      console.error(error);
      errorHandler();
      return of<string>(`${error}`);
    }),
  ); */
  return httpRequest(http, endpoints.getCombineArchiveCreationEndpoint(false), 'POST', formData, headers);
}

export async function SubmitFormDataForArchive(
@github-actions github-actions bot added the todo label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants