unfied style
This commit is contained in:
@@ -18,7 +18,7 @@ describe('admin.service forgotPassword', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks()
|
||||
process.env.ADMIN_URL = 'http://localhost:3002'
|
||||
process.env.ADMIN_URL = 'http://localhost:3000/admin'
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
|
||||
@@ -88,7 +88,7 @@ export async function forgotPassword(email: string) {
|
||||
await repo.setAdminPasswordReset(admin.id, rawToken, expiresAt)
|
||||
|
||||
const adminUrl = ensureAdminBasePath(
|
||||
process.env.ADMIN_URL ?? process.env.NEXT_PUBLIC_ADMIN_URL ?? 'http://localhost:3002/admin',
|
||||
process.env.ADMIN_URL ?? process.env.NEXT_PUBLIC_ADMIN_URL ?? 'http://localhost:3000/admin',
|
||||
)
|
||||
const resetUrl = `${adminUrl}/reset-password?token=${rawToken}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user