Fix file pruning

This commit is contained in:
Niels Andriesse 2021-04-09 13:07:18 +10:00
parent 1e5e3e9f16
commit 5b0ad2f253
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ pub async fn prune_files(file_expiration: i64) {
for room in rooms {
// It's not catastrophic if we fail to prune the database for a given room
let pool = pool_by_room_id(&room);
let now = chrono::Utc::now().timestamp();
let now = chrono::Utc::now().timestamp_nanos();
let expiration = now - file_expiration;
// Get a database connection and open a transaction
let conn = match pool.get() {