Skip to content

Commit

Permalink
feat(export): refactor DefaultExportService to use constants for docu…
Browse files Browse the repository at this point in the history
…ment fields
  • Loading branch information
ThomasSevagen committed Feb 26, 2025
1 parent 6cbdcb6 commit f2f4d2f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,12 +260,12 @@ private Slide createSlideFromCard(Card card, SlideFactory slideFactory, JsonObje
case AUDIO:
Map<String, Map<String, Object>> documentMap = new HashMap<>();
for (Map<String, Object> doc : documents) {
documentMap.put((String) doc.get("documentId"), doc);
documentMap.put((String) doc.get(Field.DOCUMENTID), doc);
}
Map<String, Object> documentData = documentMap.get(card.getResourceId());

Buffer documentBuffer = documentData != null ? (Buffer) documentData.get("buffer") : null;
String contentType = documentData != null ? (String) documentData.get("contentType") : "";
Buffer documentBuffer = documentData != null ? (Buffer) documentData.get(Field.BUFFER) : null;
String contentType = documentData != null ? (String) documentData.get(Field.CONTENTTYPE) : "";

propertiesBuilder
.contentType(contentType)
Expand Down

0 comments on commit f2f4d2f

Please sign in to comment.