extend callable timeout to over 9minutes

This commit is contained in:
shamsmosowi
2022-07-06 13:38:14 +02:00
parent dd214b96e4
commit 5123b1c1ca

View File

@@ -93,10 +93,9 @@ export default function ActionFab({
return resp;
};
const handleCallableAction = async (data: any) => {
const resp: any = await httpsCallable(
firebaseFunctions,
callableName
)(data);
const resp: any = await httpsCallable(firebaseFunctions, callableName, {
timeout: 550,
})(data);
return resp.data;
};