|
@@ -263,11 +263,6 @@ export class PatentService extends BaseService<modelType> {
|
|
|
const total = await this.model.count(query.filter);
|
|
|
let skip = 0;
|
|
|
const meta = query.file;
|
|
|
- const projection = {};
|
|
|
- for (const m of meta) {
|
|
|
- const { model } = m;
|
|
|
- projection[model] = 1;
|
|
|
- }
|
|
|
|
|
|
const head = meta.map(i => i.label);
|
|
|
for (let i = 0; i < total; i = i + parseInt(query.end_num)) {
|
|
@@ -571,7 +566,7 @@ export class PatentService extends BaseService<modelType> {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @TaskLocal('0 0 23 * *')
|
|
|
+ @TaskLocal('0 0 23 * * *')
|
|
|
async createWarnning() {
|
|
|
|
|
|
let data = await this.model.find({ term: '1' });
|