fix(staging): hoist ensurePublicSelectTable in hasura bootstrap

This commit is contained in:
codex
2026-02-01 18:49:00 +01:00
parent b46d7d85c6
commit e16a02453e

View File

@@ -236,7 +236,7 @@ async function main() {
});
};
const ensurePublicSelectTable = async (table, columns) => {
async function ensurePublicSelectTable(table, columns) {
await metadataIgnore({ type: 'pg_untrack_table', args: { source, table } });
await metadata({ type: 'pg_track_table', args: { source, table } });
@@ -257,7 +257,7 @@ async function main() {
// Computed/archived tables are written by workers using admin secret; keep ingestor off by default.
await metadataIgnore({ type: 'pg_drop_insert_permission', args: { source, table, role: 'ingestor' } });
await metadataIgnore({ type: 'pg_drop_update_permission', args: { source, table, role: 'ingestor' } });
};
}
await ensureDlobTable(dlobL2LatestTable, [
'market_name',