(entity: MediaEntity)
| 6 | import type { MediaId } from 'shared/brand' |
| 7 | |
| 8 | function entityToDomain(entity: MediaEntity): Media { |
| 9 | return { |
| 10 | id: entity.id, |
| 11 | created: new Date(entity.created), |
| 12 | edited: new Date(entity.edited), |
| 13 | data: entity.data.buffer, |
| 14 | hash: entity.hash.buffer, |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | type MediaSansHash = Omit<Media, 'hash'> |
| 19 |
nothing calls this directly
no outgoing calls
no test coverage detected