Skip to content

Commit

Permalink
Update UpdatePostCommand.php
Browse files Browse the repository at this point in the history
Since we're making an update, there's no reason to updating the created column.
  • Loading branch information
webong authored Nov 20, 2023
1 parent 5920fe2 commit 8ef13c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function fromRequest(int $id, PostRequest $request, Post $current_
? $request->input('base_language') : $current_post->base_language;
$input['published_to'] = $request->has('published_to')
? $request->input('published_to') : $current_post->published_to;
$input['created'] = strtotime($current_post->created);
// $input['created'] = strtotime($current_post->created);
$input['updated'] = time();

if ($request->has('completed_stages')) {
Expand Down

0 comments on commit 8ef13c9

Please sign in to comment.