diff --git a/packages/backend/src/server/api/SignupApiService.ts b/packages/backend/src/server/api/SignupApiService.ts
index 06b8b2913..6552dac4b 100644
--- a/packages/backend/src/server/api/SignupApiService.ts
+++ b/packages/backend/src/server/api/SignupApiService.ts
@@ -10,6 +10,7 @@ import { IdService } from '@/core/IdService.js';
import { SignupService } from '@/core/SignupService.js';
import { UserEntityService } from '@/core/entities/UserEntityService.js';
import { EmailService } from '@/core/EmailService.js';
+import { ILocalUser } from '@/models/entities/User.js';
import { SigninService } from './SigninService.js';
import type Koa from 'koa';
@@ -117,7 +118,7 @@ export class SignupApiService {
const link = `${this.config.url}/signup-complete/${code}`;
- sendEmail(emailAddress, 'Signup',
+ this.emailService.sendEmail(emailAddress, 'Signup',
`To complete signup, please click this link:
${link}`,
`To complete signup, please click this link: ${link}`);
@@ -167,7 +168,7 @@ export class SignupApiService {
emailVerifyCode: null,
});
- this.signinService.signin(ctx, account);
+ this.signinService.signin(ctx, account as ILocalUser);
} catch (e) {
ctx.throw(400, e);
}