diff --git a/server/src/main.ts b/server/src/main.ts index 95a0a907..727cfd42 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -1,7 +1,7 @@ import { NestFactory } from '@nestjs/core'; import { AppModule } from './app.module'; import { SwaggerModule, DocumentBuilder } from '@nestjs/swagger'; -import 'scripts/run-report'; +import './report'; async function bootstrap() { const PORT = process.env.PORT || 3000; diff --git a/server/src/modules/surveyResponse/__test/responseScheme.service.spec.ts b/server/src/modules/surveyResponse/__test/responseScheme.service.spec.ts index 885dcbae..04d20419 100644 --- a/server/src/modules/surveyResponse/__test/responseScheme.service.spec.ts +++ b/server/src/modules/surveyResponse/__test/responseScheme.service.spec.ts @@ -135,7 +135,7 @@ describe('ResponseSchemaService', () => { { $set: { isDeleted: true, - updatedAt: new Date(), + updatedAt: expect.any(Date), }, }, ); diff --git a/server/scripts/run-report.ts b/server/src/report.ts similarity index 100% rename from server/scripts/run-report.ts rename to server/src/report.ts diff --git a/web/src/management/api/auth.js b/web/src/management/api/auth.js index 37d758f8..911eb6f7 100644 --- a/web/src/management/api/auth.js +++ b/web/src/management/api/auth.js @@ -13,7 +13,7 @@ export const getUserInfo = () => { } /** 获取密码强度 */ export const getPasswordStrength = (password) => { - return axios.get('/auth/register/password/strength', { + return axios.get('/auth/password/strength', { params: { password }