mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
TIDY
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user