Various fixes. Sorry, lazy day.

This commit is contained in:
James Cole
2019-08-03 06:27:56 +02:00
parent 43dbad4e4c
commit febaab62f7
9 changed files with 57864 additions and 9 deletions

View File

@@ -70,7 +70,6 @@ class TagFactory
'longitude' => $longitude,
'zoomLevel' => $zoomLevel,
];
return Tag::create($array);
}
@@ -85,7 +84,7 @@ class TagFactory
/** @var Tag $dbTag */
$dbTag = $this->user->tags()->where('tag', $tag)->first();
if (null !== $tag) {
if (null !== $dbTag) {
return $dbTag;
}
$newTag = $this->create(