This commit is contained in:
2024-05-14 23:43:26 +02:00
parent 2f4ae43996
commit 14b6443cef
5 changed files with 54 additions and 90 deletions

View File

@ -26,7 +26,7 @@ class UserService {
const hashedPassword = await bcrypt.hash(password, 10);
const newUser = await UserRepository.create(username, hashedPassword);
// @TODO: Create a new character for the user
// @TODO: Remove this logic from here and move it to the character creation part wherever that'll be
const newCharacter = await CharacterRepository.create(newUser.id, newUser.username);
return newUser