فهرست منبع

Update StoryController, fix postgres bug

Daniel Supernault 5 سال پیش
والد
کامیت
a8a8e5f0dc
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      app/Http/Controllers/StoryController.php

+ 2 - 0
app/Http/Controllers/StoryController.php

@@ -42,7 +42,9 @@ class StoryController extends Controller
         }
 
         $story = new Story();
+        $story->duration = 3;
 		$story->profile_id = $user->profile_id;
+		$story->expires_at = now()->addHours(24);
 		$story->save();
 
         $monthHash = substr(hash('sha1', date('Y').date('m')), 0, 12);