mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:38:13 +00: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