Skip to content

Commit 07a679c

Browse files
committed
fix: use correct type from the db schema
1 parent c676e67 commit 07a679c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)