import type { AppContext } from '@voltro/runtime' const execute = async (input: { id: string }, ctx: AppContext) => { // A plain update — set the timestamp. audit() stamps updatedAt/updatedBy. const row = await ctx.store.update('users', input.id, { deactivatedAt: new Date() }) if (row === null) throw { status: 404, message: `user ${input.id} not found` } return row } export default execute