tachybase_todo/packages/plugin-collections/src/hooks/collections-before-validate.ts
chenos 3e3cb416b6
feat: improve collection hooks/fields/actions/views... (#30)
* feat: add onFinish callback

* fix: update json attribute unsaved after query

* refactor: collection hooks

* feat: add migrate options
2020-12-04 21:09:39 +08:00

6 lines
142 B
TypeScript

import CollectionModel from '../models/collection';
export default async function (model: CollectionModel) {
model.generateNameIfNull();
}