1
0
Fork 0

Fix video announces processing

This commit is contained in:
Chocobozzz 2018-01-26 17:48:41 +01:00
parent 0a67e28bee
commit 8dfd8fd7ca
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -279,11 +279,14 @@ async function addVideoShares (instance: VideoModel, shareUrls: string[]) {
const entry = { const entry = {
actorId: actor.id, actorId: actor.id,
videoId: instance.id videoId: instance.id,
url: shareUrl
} }
await VideoShareModel.findOrCreate({ await VideoShareModel.findOrCreate({
where: entry, where: {
url: shareUrl
},
defaults: entry defaults: entry
}) })
} }