@@ -53,7 +53,7 @@ export default {
entities: ['./entity'],
type: 'postgres',
synchronize: false, // 如果第一次使用,不存在表,有同步的需求可以写 true,注意会丢数据
- logging: true,
+ logging: false,
},
logs: {
database: logsDB,
@@ -64,7 +64,7 @@ export default {
entities: ['./entityLogs'],
@@ -28,7 +28,7 @@ export class InitOneService {
// await this.importExpertFromExcel();
}
async dataToUse() {
- await this.achievementModel.update({}, { is_use: '0' });
+ await this.achievementModel.update({}, { is_use: '0', status: '1' });
async addTags() {
const list = [{ title: '20240611' }, { title: '成果' }, { title: '专家' }, { title: '需求' }];
@@ -39,9 +39,9 @@ export class InitTwoService {
- // await this.demandModel.update({}, { is_use: '0' });
- await this.projectModel.update({}, { is_use: '0' });
- await this.supplyModel.update({}, { is_use: '0' });
+ await this.demandModel.update({}, { is_use: '0', status: '1' });
+ await this.projectModel.update({}, { is_use: '0', status: '1' });
+ await this.supplyModel.update({}, { is_use: '0', status: '1' });