fix: jobs
This commit is contained in:
@@ -88,6 +88,18 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
Hash: video.Hash,
|
||||
TenantID: post.TenantID,
|
||||
UserID: post.UserID,
|
||||
Mark: "audio-preview",
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoExtractAudioJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
TenantID: post.TenantID,
|
||||
UserID: post.UserID,
|
||||
Mark: "audio",
|
||||
}, nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user