diff --git a/app/Sources/Textadventures.php b/app/Sources/Textadventures.php index 6d876d4..0e00511 100644 --- a/app/Sources/Textadventures.php +++ b/app/Sources/Textadventures.php @@ -87,7 +87,7 @@ class Textadventures extends Source { } $game->save(); $game->languages()->sync([$language->id]); - if (isset($author) && !$game->authors()->where('id', $model->id)->exists()) { + if (isset($author) && !$game->authors()->where('authors.id', $model->id)->exists()) { $game->authors()->attach($model); } });