|
@@ -65,6 +65,7 @@ module.exports = app => {
|
|
|
async getValidFiling(spid, filingType) {
|
|
|
const condition = { spid, is_deleted: 0 };
|
|
|
if (filingType !== 'all') condition.filing_type = filingType;
|
|
|
+ if (!filingType || filingType.length === 0) return [];
|
|
|
return await this.getAllDataByCondition({ where: condition });
|
|
|
}
|
|
|
|