Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
{
"db_name": "PostgreSQL",
"query": "\n WITH invalidated AS (\n UPDATE calendar_backfill_jobs\n SET status = 'failed',\n completed_at = now(),\n lease_token = NULL,\n lease_expires_at = NULL,\n last_error = 'superseded by a newer Google grant',\n updated_at = now()\n WHERE email_link_id = $1\n AND kind = 'google_calendar'\n AND grant_version <> $2\n AND status IN ('pending', 'running')\n RETURNING id\n )\n UPDATE calendar_sync_outbox outbox\n SET published_at = COALESCE(outbox.published_at, now())\n FROM invalidated\n WHERE outbox.backfill_job_id = invalidated.id\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Int8"
]
},
"nullable": []
},
"hash": "db9bf75ccc15d4c0f0956829f55a8379a7f4d67f2065dd012ea8811fdf3ca791"
}