Skip to content

Commit 314f824

Browse files
authored
Merge pull request #614 from Financial-Times/fix/fix-get-content-es-by-id-error
Fix get_content_es_by_id argument type
2 parents c676e67 + d2213d1 commit 314f824

3 files changed

Lines changed: 4 additions & 12 deletions

File tree

package-lock.json

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ft-next-syndication-api",
33
"description": "Next Syndication API",
4-
"version": "9.0.0",
4+
"version": "9.0.1",
55
"private": true,
66
"dependencies": {
77
"@dotcom-reliability-kit/crash-handler": "^5.0.0",

server/lib/get-history-by-contract-id.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module.exports = exports = async ({ contract_id, limit, offset, type, user_id })
6060
const allExisting = await getAllExistingItemsForContract(contract_id);
6161

6262
await items.filter(item => item.iso_lang_code === 'es').forEach(async item => {
63-
const query = 'SELECT * FROM syndication.get_content_es_by_id($1::text)';
63+
const query = 'SELECT * FROM syndication.get_content_es_by_id($1::uuid)';
6464
const [content] = await db.query(query, [item.content_id]);
6565
item.content_area = content.content_area;
6666
});

0 commit comments

Comments
 (0)