Skip to content

Commit 96e4da4

Browse files
committed
try addFieldIfNotExist again
1 parent a438838 commit 96e4da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controllers/SchemaController.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,7 @@ export default class SchemaController {
12451245
}
12461246
const results = await Promise.all(promises);
12471247
const enforceFields = results.filter(result => !!result);
1248+
this.ensureFields(enforceFields);
12481249

12491250
if (enforceFields.length !== 0) {
12501251
const cached = SchemaCache.get(className);
@@ -1253,7 +1254,6 @@ export default class SchemaController {
12531254
});
12541255
await this.reloadData();
12551256
}
1256-
this.ensureFields(enforceFields);
12571257

12581258
const promise = Promise.resolve(schema);
12591259
return thenValidateRequiredColumns(promise, className, object, query);

0 commit comments

Comments
 (0)