Merge pull request #11984 from nh314/Correct-assignedusers-relation

Correct assignedusers relation setting
This commit is contained in:
snipe 2023-02-21 20:15:20 -08:00 committed by GitHub
commit 05f6d0bd5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -368,7 +368,7 @@ class License extends Depreciable
*/ */
public function assignedusers() public function assignedusers()
{ {
return $this->belongsToMany(\App\Models\User::class, 'license_seats', 'assigned_to', 'license_id'); return $this->belongsToMany(\App\Models\User::class, 'license_seats', 'license_id', 'assigned_to');
} }
/** /**