Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankharchenko committed Oct 31, 2023
1 parent 94ee51b commit 9cebef5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Console/Commands/PullEventsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function handleRow(EventDataTransformer $data)
$this->progressSubMessage($data->event_name);

Event::updateOrCreate($data->uniqueIdentifier(), [
'event_uuid' => $data->uniqueIdentifierHash(),
'event_uuid' => $data->uuid,
'event_name' => $data->event_name,
'group_name' => $data->group_name,
'description' => $data->description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public function up(): void
{
Schema::table('events', function (Blueprint $table) {
$table->integer('organization_id')->unsigned()->after('id');
$table->integer('organization_id')->unsigned()->nullable()->after('id');
});
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/PullEventsCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

it("it imports events from api", function () {
Http::fake([
config('app.events_api_domain') . '/*' => Http::response([
'https://events.openupstate.org/api/gtc' => Http::response([
[
'event_name' => 'Weekly Friday Afternoon Garden Tending',
'group_name' => 'SynergyMill Community Workshop',
Expand Down

0 comments on commit 9cebef5

Please sign in to comment.