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 UPDATE calendar_backfill_jobs\n SET status = 'complete',\n completed_at = now(),\n lease_token = NULL,\n lease_expires_at = NULL,\n updated_at = now()\n WHERE id = $1\n AND email_link_id = $2\n AND kind = 'google_calendar'\n AND status = 'running'\n AND lease_token = $3\n AND lease_expires_at > now()\n AND EXISTS (\n SELECT 1\n FROM email_link_google_scopes scopes\n WHERE scopes.link_id = calendar_backfill_jobs.email_link_id\n AND scopes.grant_version = calendar_backfill_jobs.grant_version\n AND scopes.granted_scopes @> $4::text[]\n )\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Uuid",
"TextArray"
]
},
"nullable": []
},
"hash": "e10fba756a67ef10a1246426a39b99d2aabeb58798f2f56d0fab7c9ec6e330c3"
}