From 9530beda78de407be6a0a667af712014f729a0b0 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Mon, 31 Mar 2025 20:52:30 +0200 Subject: [PATCH] compile api: send correct target+accept header --- src/components/helpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/helpers.js b/src/components/helpers.js index 4cded81..a85a858 100644 --- a/src/components/helpers.js +++ b/src/components/helpers.js @@ -18,13 +18,13 @@ export async function compilePolicy(opa, input, mappings = {}, query = "data.fi query, options: { targetSQLTableMappings: { - postgres: mappings, + postgresql: mappings, }, }, }), headers: { "Content-Type": "application/json", - "Accept": "application/vnd.styra.sql.postgres+json" + "Accept": "application/vnd.styra.sql.postgresql+json" }, }); return resp;