What the linter reports:
Model actions cannot use scheduler triggers.
Examples
- Incorrect
- Correct
api/models/widget/actions/create.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Disallow scheduler triggers in model action options.
| Recommended | Strict | Auto-fixable | Scope |
|---|---|---|---|
| warn | error | true | Model action files |
Model actions cannot use scheduler triggers.
export const options: ActionOptions = {
// scheduler triggers are only valid in global actions
triggers: [{ type: "scheduler" }],
};
export const options: ActionOptions = {
// model actions support api, shopify, and other non-scheduler triggers
triggers: [{ type: "api" }],
};
Was this page helpful?