@capgo/cli 3.5.2 → 3.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils.ts CHANGED
@@ -48,7 +48,7 @@ export const checkKey = async (supabase: SupabaseClient<Database>, apikey: strin
48
48
 
49
49
  export const isGoodPlan = async (supabase: SupabaseClient<Database>, userId: string): Promise<boolean> => {
50
50
  const { data, error } = await supabase
51
- .rpc('is_good_plan_v2', { userid: userId })
51
+ .rpc('is_good_plan_v3', { userid: userId })
52
52
  .single()
53
53
  if (error) {
54
54
  throw error
@@ -190,14 +190,12 @@ export const updateOrCreateVersion = async (supabase: SupabaseClient<Database>,
190
190
  .update(update)
191
191
  .eq('app_id', update.app_id)
192
192
  .eq('name', update.name)
193
- .single()
194
193
  }
195
194
  // console.log('create Version', data, error)
196
195
 
197
196
  return supabase
198
197
  .from('app_versions')
199
198
  .insert(update)
200
- .select()
201
199
  .single()
202
200
  }
203
201