fix: jobs

This commit is contained in:
Rogee
2025-01-16 15:59:21 +08:00
parent 2cd7f2a2b8
commit 3a8bb03cb7
12 changed files with 619 additions and 12 deletions

View File

@@ -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