Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Dec 20, 2024
1 parent bd42c1d commit e243a79
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,23 +857,6 @@ export async function updateOrCreateChannel(supabase: SupabaseClient<Database>,
.single()

if (data && !error) {
if (data.enable_progressive_deploy) {
log.info('Progressive deploy is enabled')

if (data.secondary_version_percentage !== 1)
log.warn('Latest progressive deploy has not finished')

update.second_version = update.version
if (!data.second_version) {
log.error('missing secondVersion')
return Promise.reject(new Error('missing secondVersion'))
}
update.version = data.second_version
update.secondary_version_percentage = 0.1
log.info('Started new progressive upload!')

// update.version = undefined
}
return supabase
.from('channels')
.update(update)
Expand Down

0 comments on commit e243a79

Please sign in to comment.