Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

1.7 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n            WITH due AS (\n                UPDATE calendar_backfill_jobs job\n                SET status = 'pending',\n                    cursor = '{}',\n                    last_error = NULL,\n                    started_at = NULL,\n                    completed_at = NULL,\n                    lease_token = NULL,\n                    lease_expires_at = NULL,\n                    updated_at = now()\n                FROM calendar_accounts account, email_link_google_scopes scopes\n                WHERE job.email_link_id = $1\n                  AND job.email_link_id = account.email_link_id\n                  AND job.account_id = account.id\n                  AND scopes.link_id = job.email_link_id\n                  AND job.kind = 'google_calendar'\n                  AND job.status = 'complete'\n                  AND job.grant_version = scopes.grant_version\n                  AND scopes.granted_scopes @> $2::text[]\n                  AND account.sync_status = 'ready'\n                RETURNING job.id\n            ),\n            republished AS (\n                UPDATE calendar_sync_outbox outbox\n                SET published_at = NULL\n                FROM due\n                WHERE outbox.backfill_job_id = due.id\n            )\n            SELECT count(*) > 0 AS \"scheduled!\" FROM due\n            ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "scheduled!",
        "type_info": "Bool"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "TextArray"
      ]
    },
    "nullable": [
      null
    ]
  },
  "hash": "7dac4a96f590bb91f1837710fff321dc690c7fb0173bacee985d494fdfcded43"
}