fix: Fix user reinvites on FE and BE (#8261)

This commit is contained in:
Iván Ovejero
2024-01-09 13:52:34 +01:00
committed by GitHub
parent b1c1372bc2
commit 0dabe5c74e
7 changed files with 50 additions and 13 deletions

View File

@@ -63,7 +63,7 @@ export async function request(config: {
baseURL: string;
endpoint: string;
headers?: IDataObject;
data?: IDataObject;
data?: IDataObject | IDataObject[];
withCredentials?: boolean;
}) {
const { method, baseURL, endpoint, headers, data } = config;
@@ -119,7 +119,7 @@ export async function makeRestApiRequest<T>(
context: IRestApiContext,
method: Method,
endpoint: string,
data?: IDataObject,
data?: IDataObject | IDataObject[],
) {
const response = await request({
method,