fc-common: format
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I946272ee6563f5bca0844c5a25ba08f66a6a6964
This commit is contained in:
parent
015360ffcf
commit
23a4a8e348
3 changed files with 25 additions and 33 deletions
|
|
@ -387,11 +387,7 @@ pub async fn list_pinned_ids(
|
|||
}
|
||||
|
||||
/// Set the `keep` (GC pin) flag on a build.
|
||||
pub async fn set_keep(
|
||||
pool: &PgPool,
|
||||
id: Uuid,
|
||||
keep: bool,
|
||||
) -> Result<Build> {
|
||||
pub async fn set_keep(pool: &PgPool, id: Uuid, keep: bool) -> Result<Build> {
|
||||
sqlx::query_as::<_, Build>(
|
||||
"UPDATE builds SET keep = $1 WHERE id = $2 RETURNING *",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue