This commit is contained in:
Jonathan Summers-Muir committed 2024-10-26 18:12:34 +08:00
1 parent 083a3e38e7
commit 2cfa37bf86
1 file changed
-8
@@ -17,19 +17,11 @@ export async function updateSubscriptionAddon({
projectRef,
variant,
type,
suppressToast,
}: ProjectAddonUpdateVariables) {
if (!projectRef) throw new Error('projectRef is required')
if (!variant) throw new Error('variant is required')
if (!type) throw new Error('type is required')
// wait 10 seconds
// Synchronous delay using a loop
// const start = Date.now()
// while (Date.now() - start < 10000) {
// // Empty loop to create delay
// }
const { data, error } = await post(`/platform/projects/{ref}/billing/addons`, {
params: {
path: {