Used updated_at instead

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe
2024-03-10 16:39:49 +00:00
parent 5a85424295
commit 3f5cc2507d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -337,7 +337,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
*/
public function licenses()
{
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at');
return $this->belongsToMany(\App\Models\License::class, 'license_seats', 'assigned_to', 'license_id')->withPivot('id', 'created_at', 'updated_at');
}
/**