mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-04 05:08:42 +08:00
fix: skip non-existent collection
This commit is contained in:
parent
5000affc26
commit
e980791796
@ -82,7 +82,7 @@ export class AutomationModel extends Model {
|
||||
const changedFields = (this.get('changed') as any) || [];
|
||||
const M = this.database.getModel(collectionName);
|
||||
const automationType = this.get('type');
|
||||
if (automationType !== 'schedule' || !collectionName || !M) {
|
||||
if (automationType !== 'schedule' && (!collectionName || !M)) {
|
||||
return;
|
||||
}
|
||||
switch (automationType) {
|
||||
|
Loading…
Reference in New Issue
Block a user