Skip to content

Commit 0257f11

Browse files
committed
compile api: send correct target+accept header
1 parent 7ac1869 commit 0257f11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ export async function compilePolicy(opa, input, mappings = {}, query = "data.fi
1818
query,
1919
options: {
2020
targetSQLTableMappings: {
21-
postgres: mappings,
21+
postgresql: mappings,
2222
},
2323
},
2424
}),
2525
headers: {
2626
"Content-Type": "application/json",
27-
"Accept": "application/vnd.styra.sql.postgres+json"
27+
"Accept": "application/vnd.styra.sql.postgresql+json"
2828
},
2929
});
3030
return resp;

0 commit comments

Comments
 (0)