mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-08-02 21:16:12 -04:00
Updated to latest
This commit is contained in:
@@ -67,11 +67,16 @@ class VideoUrlsController extends Controller
|
||||
'status' => StudioPlusVideo::STATUS_PUBLISHED
|
||||
]);
|
||||
|
||||
StudioPlusVideoStatusTrack::create([
|
||||
StudioPlusVideoStatusTrack::firstOrCreate([
|
||||
'studio_plus_video_id' => $video->id,
|
||||
'name' => StudioPlusVideo::STATUS_PUBLISHED
|
||||
]);
|
||||
|
||||
StudioPlusVideoStatusTrack::create([
|
||||
'studio_plus_video_id' => $video->id,
|
||||
'name' => $request->label.' URL Added'
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Video url has been saved.',
|
||||
'url' => $url,
|
||||
@@ -117,11 +122,16 @@ class VideoUrlsController extends Controller
|
||||
'status' => StudioPlusVideo::STATUS_PUBLISHED
|
||||
]);
|
||||
|
||||
StudioPlusVideoStatusTrack::create([
|
||||
StudioPlusVideoStatusTrack::firstOrCreate([
|
||||
'studio_plus_video_id' => $video->id,
|
||||
'name' => StudioPlusVideo::STATUS_PUBLISHED
|
||||
]);
|
||||
|
||||
StudioPlusVideoStatusTrack::create([
|
||||
'studio_plus_video_id' => $video->id,
|
||||
'name' => $request->label.' URL Updated'
|
||||
]);
|
||||
|
||||
return response()->json([
|
||||
'message' => 'Video url has been udpated.',
|
||||
'url' => $url,
|
||||
|
||||
Reference in New Issue
Block a user