feat: add some new features
This commit is contained in:
@@ -72,7 +72,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
}
|
||||
|
||||
// cut video
|
||||
_, err = job.Insert(context.Background(), jobs.VideoCut{
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoCutJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
TenantID: post.TenantID,
|
||||
@@ -83,7 +83,7 @@ func (e *PostCreated) Handler(msg *message.Message) ([]*message.Message, error)
|
||||
}
|
||||
|
||||
// extract audio
|
||||
_, err = job.Insert(context.Background(), jobs.VideoExtractAudio{
|
||||
_, err = job.Insert(context.Background(), jobs.PostVideoExtractAudioJob{
|
||||
PostID: post.ID,
|
||||
Hash: video.Hash,
|
||||
TenantID: post.TenantID,
|
||||
|
||||
Reference in New Issue
Block a user