feat: update medias
This commit is contained in:
@@ -74,7 +74,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
// cut video
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoCutJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
MediaID: video.Media,
|
||||
TenantID: post.TenantID,
|
||||
UserID: post.UserID,
|
||||
}, nil)
|
||||
@@ -85,7 +85,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
// extract audio
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoExtractAudioJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
MediaID: video.Media,
|
||||
TenantID: post.TenantID,
|
||||
UserID: post.UserID,
|
||||
Mark: "audio-preview",
|
||||
@@ -96,7 +96,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoExtractAudioJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
MediaID: video.Media,
|
||||
TenantID: post.TenantID,
|
||||
UserID: post.UserID,
|
||||
Mark: "audio",
|
||||
|
||||
Reference in New Issue
Block a user