import type { AppContext } from '@voltro/runtime' // Plain insert — the `block` moderation rule already rejected banned content // before we got here, so this only runs on clean input. tenant() auto-fills // tenantId from the subject. const execute = async (input: { title: string; body: string }, ctx: AppContext) => ctx.store.insert('posts', { title: input.title, body: input.body }) export default execute