fix issues in core
This commit is contained in:
@@ -48,7 +48,7 @@ export class LoginUseCase implements UseCase<LoginInput, void, LoginErrorCode> {
|
||||
const isValid = await this.passwordService.verify(input.password, passwordHash.value);
|
||||
|
||||
if (!isValid) {
|
||||
return Result.err<LoginApplicationError>({
|
||||
return Result.err<void, LoginApplicationError>({
|
||||
code: 'INVALID_CREDENTIALS',
|
||||
details: { message: 'Invalid credentials' },
|
||||
});
|
||||
@@ -66,7 +66,7 @@ export class LoginUseCase implements UseCase<LoginInput, void, LoginErrorCode> {
|
||||
input,
|
||||
});
|
||||
|
||||
return Result.err<LoginApplicationError>({
|
||||
return Result.err<void, LoginApplicationError>({
|
||||
code: 'REPOSITORY_ERROR',
|
||||
details: { message },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user