Skip to content

Commit

Permalink
fix: add more columns to getDocumentMultimediaItems
Browse files Browse the repository at this point in the history
  • Loading branch information
sircharlo committed Nov 21, 2024
1 parent 99cc35f commit b715bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/jw-media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ const getDocumentMultimediaItems = (source: MultimediaItemsFetcher) => {
.map((item) => item.name)
.includes('SuppressZoom');

let select = 'SELECT Multimedia.*';
let select = 'SELECT Multimedia.*, Document.*';
select += mmTable === 'DocumentMultimedia' ? ', DocumentMultimedia.*' : '';
select += ParagraphColumnsExist ? ', DocumentParagraph.BeginPosition' : '';
select += ParagraphColumnsExist ? ', DocumentParagraph.*' : '';
select += LinkMultimediaIdExists
? ', LinkedMultimedia.FilePath AS LinkedPreviewFilePath'
: '';
Expand Down

0 comments on commit b715bd0

Please sign in to comment.