refactor(core): rename attachments config to media (#39927)
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
This commit is contained in:
parent
3bfce3fd2d
commit
e60e8d9387
9 changed files with 23 additions and 23 deletions
|
|
@ -61,7 +61,7 @@ const layer = Layer.effect(
|
|||
const image = Object.assign(
|
||||
{},
|
||||
...(yield* config.entries()).flatMap((entry) =>
|
||||
entry.type === "document" && entry.info.attachments?.image ? [entry.info.attachments.image] : [],
|
||||
entry.type === "document" && entry.info.media?.image ? [entry.info.media.image] : [],
|
||||
),
|
||||
)
|
||||
const normalize = yield* loadAdapter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue