Fix video announces processing
This commit is contained in:
parent
0a67e28bee
commit
8dfd8fd7ca
|
@ -279,11 +279,14 @@ async function addVideoShares (instance: VideoModel, shareUrls: string[]) {
|
|||
|
||||
const entry = {
|
||||
actorId: actor.id,
|
||||
videoId: instance.id
|
||||
videoId: instance.id,
|
||||
url: shareUrl
|
||||
}
|
||||
|
||||
await VideoShareModel.findOrCreate({
|
||||
where: entry,
|
||||
where: {
|
||||
url: shareUrl
|
||||
},
|
||||
defaults: entry
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue