Major refractor, cleaning and improvements.

This commit is contained in:
2024-08-24 03:08:43 +02:00
parent e0b376cb83
commit 39f4e79a88
30 changed files with 123 additions and 69 deletions

View File

@ -14,6 +14,7 @@ class UserRepository {
throw new Error(`Failed to get user by ID: ${error.message}`)
}
}
async getByUsername(username: string): Promise<User | null> {
try {
return await prisma.user.findUnique({