Update integration-utils.ts

This commit is contained in:
Jonathan Summers-Muir committed 2023-07-07 17:39:39 +08:00
1 parent b7098af30c
commit 02b43aa423
1 file changed
+3 -1
+3 -1
View File
@@ -45,7 +45,9 @@ export async function getInitialMigrationSQLFromGitHubRepo(
const baseGitHubUrl = `https://api.github.com/repos/${owner}/${repo}/contents/${path}`
const supabaseFolderUrl = `${baseGitHubUrl}/supabase?ref=${branch}`
const supabaseMigrationsPath = `supabase/migrations` // TODO: read this from the `supabase/config.toml` file
const migrationsFolderUrl = `${baseGitHubUrl}/${supabaseMigrationsPath}?ref=${branch}`
const migrationsFolderUrl = `${baseGitHubUrl}/${supabaseMigrationsPath}${
branch ? `?ref=${branch}` : ``
}`
const [supabaseFilesResponse, migrationFilesResponse] = await Promise.all([
fetchGitHub<File[]>(supabaseFolderUrl),