Skip to content

Commit

Permalink
fix: use downloadUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
czosel committed Dec 7, 2023
1 parent 0f8c9c2 commit 04086b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion addon/models/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ export default class DocumentModel extends LocalizedModel {
const thumbnail = this.files.filter(
(file) => file.variant === "thumbnail",
)[0];
return thumbnail && thumbnail.content;
return thumbnail && thumbnail.downloadUrl;
}
}
1 change: 1 addition & 0 deletions addon/models/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Model, { attr, belongsTo, hasMany } from "@ember-data/model";
export default class FileModel extends Model {
@attr variant;
@attr name;
@attr downloadUrl;
@attr metainfo;
@attr content;
@attr checksum;
Expand Down

0 comments on commit 04086b0

Please sign in to comment.