Skip to content

Commit 3f40d82

Browse files
committed
feat: add commit to refresh views endpoint
1 parent 94568b1 commit 3f40d82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hooks/src/refresh.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ router.post("/", async (ctx, next) => {
99
await client.query(`
1010
REFRESH MATERIALIZED VIEW CONCURRENTLY dx_intl_scores_stats;
1111
REFRESH MATERIALIZED VIEW CONCURRENTLY dx_intl_scores_rates;
12+
COMMIT;
1213
`)
1314
} catch (e) {
1415
await client.query("ROLLBACK")

0 commit comments

Comments
 (0)