|
@@ -45,7 +45,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async checkFiles(filing_id, files) {
|
|
|
- const existFiles = await this.getAllDataByCondition({ columns: ['filename', 'fileext'], where: { filing_id } });
|
|
|
+ const existFiles = await this.getAllDataByCondition({ columns: ['filename', 'fileext'], where: { filing_id, is_deleted: 0 } });
|
|
|
const existFilesName = existFiles.map(x => { return x.filename + x.fileext });
|
|
|
return files.filter(x => { return existFilesName.indexOf(x) >= 0; });
|
|
|
}
|