Skip to content

Commit

Permalink
Use constant for updated_at column name (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvdanker authored Jun 26, 2024
1 parent 0b90519 commit 8a54ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public function set($feature, $scope, $value): void
'value' => json_encode($value, flags: JSON_THROW_ON_ERROR),
static::CREATED_AT => $now = Carbon::now(),
static::UPDATED_AT => $now,
], uniqueBy: ['name', 'scope'], update: ['value', 'updated_at']);
], uniqueBy: ['name', 'scope'], update: ['value', static::CREATED_AT]);
}

/**
Expand Down

0 comments on commit 8a54ed9

Please sign in to comment.