Skip to content

Commit 3332048

Browse files
buildbuild
authored andcommitted
same thing?
1 parent 5579561 commit 3332048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BaroBot/Commands/CategoryCommands/CreateCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ await Context.Guild.CreateVoiceChannelAsync(voiceChannel, properties =>
6565
};
6666
});
6767

68-
Log.Warn(gameId);
6968
Category category = new Category(restCategory, restRole, gameId);
7069
await _database.SaveAsync(category);
71-
await _eventDispatcher.RaiseCategoryCreatedAsync(new CategoryCreatedEvent(category));
70+
var savedCategory = await _database.FetchOneAsync<Category>(x => x.Id == category.Id);
71+
await _eventDispatcher.RaiseCategoryCreatedAsync(new CategoryCreatedEvent(savedCategory!));
7272

7373
await RespondAsync($"Category '{name}' created!");
7474
}

0 commit comments

Comments
 (0)