This commit is contained in:
shibafu
2020-07-24 13:56:06 +09:00
parent d58afc0324
commit e2ba3581f9
5 changed files with 180 additions and 3 deletions

View File

@@ -34,6 +34,6 @@ class CheckinWebhook extends Model
public function isAvailable()
{
return $this->user() !== null;
return $this->user !== null;
}
}

View File

@@ -46,7 +46,7 @@ class WebhookController extends Controller
'message' => 'Validation failed',
'violations' => $validator->errors()->all(),
]
]);
], 422);
}
$ejaculatedDate = empty($inputs['checked_in_at']) ? now() : new Carbon($inputs['checked_in_at']);
@@ -57,7 +57,7 @@ class WebhookController extends Controller
'error' => [
'message' => 'Checkin already exists in this time',
]
]);
], 422);
}
$ejaculation = Ejaculation::create([