mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix tests
This commit is contained in:
parent
33e1c4dd00
commit
302efc119e
2 changed files with 2 additions and 2 deletions
|
|
@ -67,7 +67,7 @@ export const uploadContentJob = async (data: UploadContentJobData) => {
|
|||
|
||||
const { column, highlights } = getSelectOptions(format)
|
||||
const libraryItem = await findLibraryItemById(libraryItemId, userId, {
|
||||
select: [column],
|
||||
select: ['id', column], // id is required for relations
|
||||
relations: {
|
||||
highlights,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -807,7 +807,7 @@ export const findLibraryItemById = async (
|
|||
return authTrx(
|
||||
async (tx) =>
|
||||
tx.withRepository(libraryItemRepository).findOne({
|
||||
select: ['id' as keyof LibraryItem].concat(options?.select || []), // always select id
|
||||
select: options?.select,
|
||||
where: { id },
|
||||
relations: options?.relations,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Reference in a new issue