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.4 KB
Raw Blame
{
  "db_name": "PostgreSQL",
  "query": "\n        SELECT job.id\n        FROM calendar_backfill_jobs job\n        WHERE job.id = $1\n          AND job.email_link_id = $2\n          AND job.kind = 'google_calendar'\n          AND job.status = 'running'\n          AND job.lease_token = $3\n          AND job.lease_expires_at > now()\n          AND EXISTS (\n                SELECT 1\n                FROM email_link_google_scopes scopes\n                WHERE scopes.link_id = job.email_link_id\n                  AND scopes.grant_version = job.grant_version\n                  AND scopes.granted_scopes @> $5::text[]\n          )\n          AND EXISTS (\n                SELECT 1\n                FROM calendar_accounts account\n                WHERE account.id = job.account_id\n                  AND account.email_link_id = job.email_link_id\n                  AND account.sync_status <> 'disabled'\n                  AND ($4::uuid IS NULL OR account.id = $4)\n          )\n        FOR UPDATE OF job\n        ",
  "describe": {
    "columns": [
      {
        "ordinal": 0,
        "name": "id",
        "type_info": "Uuid"
      }
    ],
    "parameters": {
      "Left": [
        "Uuid",
        "Uuid",
        "Uuid",
        "Uuid",
        "TextArray"
      ]
    },
    "nullable": [
      false
    ]
  },
  "hash": "123b1f5886fafe4a9fc3e1507a799c9ce88d7d3ae43fe2ecf4ed99eaa41cdfd0"
}