Skip to content

Commit 677fb61

Browse files
committed
fix(mod_versions): remove touch_updated_at)
1 parent 7f3a4ab commit 677fb61

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

.sqlx/query-3472cd417f39c0b19d1befea3f6100299d4d213dd70cac2bf57028e12eaa3b9d.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/database/repository/mod_versions.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -395,18 +395,3 @@ pub async fn update_version_status(
395395

396396
Ok(version)
397397
}
398-
399-
pub async fn touch_updated_at(id: i32, conn: &mut PgConnection) -> Result<(), ApiError> {
400-
sqlx::query!(
401-
"UPDATE mod_versions
402-
SET updated_at = NOW()
403-
WHERE id = $1",
404-
id
405-
)
406-
.execute(conn)
407-
.await
408-
.inspect_err(|e| log::error!("Failed to touch updated_at for mod version {}: {}", id, e))
409-
.or(Err(ApiError::DbError))?;
410-
411-
Ok(())
412-
}

0 commit comments

Comments
 (0)