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.

409 B
Raw Blame
//! Bump a project's `updatedAt` timestamp.

/// Update a project's `updatedAt` to `NOW()`.
#[tracing::instrument(err, skip(pool))]
pub(crate) async fn update_project_modified(
    pool: &sqlx::PgPool,
    project_id: &str,
) -> anyhow::Result<()> {
    sqlx::query!(
        r#"UPDATE "Project" SET "updatedAt" = NOW() WHERE id = $1"#,
        project_id,
    )
    .execute(pool)
    .await?;

    Ok(())
}