Skip to content

Commit 7f3a4ab

Browse files
committed
fix(mod_versions): i might be tired
1 parent bc917d3 commit 7f3a4ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.sqlx/query-8af1ef25524836ba802a4d2d56bd18c1f154dc970f8e0b1a1e808453a2bcaff0.json renamed to .sqlx/query-17eda7d205664b0b48a50a9457658d0869c2ba8a8e80a9b6b3268572277b137c.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/database/repository/mods.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,13 +303,13 @@ pub async fn update_with_json_moved(
303303
pub async fn touch_created_at(id: &str, conn: &mut PgConnection) -> Result<(), ApiError> {
304304
sqlx::query!(
305305
"UPDATE mods
306-
SET updated_at = NOW()
306+
SET created_at = NOW()
307307
WHERE id = $1",
308308
id
309309
)
310310
.execute(conn)
311311
.await
312-
.inspect_err(|e| log::error!("Failed to touch updated_at for mod {}: {}", id, e))
312+
.inspect_err(|e| log::error!("Failed to touch created_at for mod {}: {}", id, e))
313313
.or(Err(ApiError::DbError))?;
314314

315315
Ok(())

0 commit comments

Comments
 (0)