Parcourir la source

Update StoryController, fix expiration time bug

Daniel Supernault il y a 4 ans
Parent
commit
39e57f9506
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/Http/Controllers/StoryController.php

+ 1 - 1
app/Http/Controllers/StoryController.php

@@ -158,7 +158,7 @@ class StoryController extends Controller
 
 		$story->active = true;
 		$story->duration = $request->input('duration', 10);
-		$story->expires_at = now()->addHours(24);
+		$story->expires_at = now()->addMinutes(1450);
 		$story->save();
 
 		return [