mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
SetClaims when creating an email article
This commit is contained in:
parent
f7814a0c4a
commit
bea7d084c4
1 changed files with 4 additions and 0 deletions
|
|
@ -93,10 +93,13 @@ export const saveEmail = async (
|
|||
}
|
||||
)
|
||||
})
|
||||
console.log('created matched email', result)
|
||||
} else {
|
||||
await ctx.pubsub.pageCreated(saverId, url, input.originalContent)
|
||||
|
||||
await kx.transaction(async (tx) => {
|
||||
await setClaims(tx, saverId)
|
||||
|
||||
const articleRecord = await ctx.models.article.create(articleToSave, tx)
|
||||
result = await ctx.models.userArticle.create(
|
||||
{
|
||||
|
|
@ -108,6 +111,7 @@ export const saveEmail = async (
|
|||
},
|
||||
tx
|
||||
)
|
||||
console.log('created new email', result)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue