fix: [card] store/update 응답에 관계(assignedUser) 포함
- fresh() → show() 재사용으로 관계 로딩 보장
This commit is contained in:
@@ -113,7 +113,7 @@ public function store(array $data): Card
|
||||
|
||||
$card->save();
|
||||
|
||||
return $card;
|
||||
return $this->show($card->id);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@ public function update(int $id, array $data): Card
|
||||
$card->updated_by = $userId;
|
||||
$card->save();
|
||||
|
||||
return $card->fresh();
|
||||
return $this->show($card->id);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user