Skip to content

Commit

Permalink
draft 기능이 기존 임시저장 데이터를 업데이트하지 못하는 문제 고침
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Dec 7, 2018
1 parent 1e4c780 commit 5b377c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/DraftController.php
Expand Up @@ -89,7 +89,7 @@ public function store(Request $request)
public function update(Request $request, $draftId)
{
if (Auth::guest() !== true) {
if (($old = XeDraft::getById($draftId)) && $old->userId == Auth::user()->getId()) {
if (($old = XeDraft::getById($draftId)) && $old->user_id == Auth::user()->getId()) {
$etc = $request->except(['_token', 'rep']);
$draft = XeDraft::put($draftId, $request->get($request->get('rep')), $etc);

Expand Down

0 comments on commit 5b377c5

Please sign in to comment.