mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Return image proxy url in Article function_resolver
This commit is contained in:
parent
04ad3af372
commit
06218ef5e0
1 changed files with 3 additions and 0 deletions
|
|
@ -475,6 +475,9 @@ export const functionResolvers = {
|
|||
ctx.models
|
||||
)
|
||||
},
|
||||
image(article: { image?: string }): string | undefined {
|
||||
return article.image && createImageProxyUrl(article.image, 88, 88)
|
||||
},
|
||||
},
|
||||
ArticleSavingRequest: {
|
||||
async article(request: { userId: string; articleId: string }, __: unknown) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue