feat: Add player_configs feature and migrate user preferences
- Implemented player_configs table to store multiple player configurations per user. - Migrated existing player settings from user_preferences to player_configs. - Removed player-related columns from user_preferences. - Added referral state fields to user for tracking referral rewards. - Created migration scripts for database changes and data migration. - Added test cases for app services and usage helpers. - Introduced video job service interfaces and implementations.
This commit is contained in:
@@ -152,8 +152,8 @@ func (r *Adapter) SubscribeCancel(ctx context.Context, agentID string) (<-chan s
|
||||
return ch, nil
|
||||
}
|
||||
|
||||
func (r *Adapter) PublishJobUpdate(ctx context.Context, jobID string, status string) error {
|
||||
payload, err := json.Marshal(map[string]string{"job_id": jobID, "status": status})
|
||||
func (r *Adapter) PublishJobUpdate(ctx context.Context, jobID string, status string, videoID string) error {
|
||||
payload, err := json.Marshal(map[string]string{"job_id": jobID, "status": status, "video_id": videoID})
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user