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.

402 B
Raw Blame
pub async fn delete_notification_by_event_item(
    db: &sqlx::Pool<sqlx::Postgres>,
    event_item_id: &str,
    event_item_type: &str,
) -> anyhow::Result<()> {
    sqlx::query!(
        r#"
            DELETE FROM notification
            WHERE event_item_id = $1 AND event_item_type = $2
        "#,
        event_item_id,
        event_item_type,
    )
    .execute(db)
    .await?;

    Ok(())
}