diff --git a/crates/core/database/src/models/audit_logs/model.rs b/crates/core/database/src/models/audit_logs/model.rs index 9cfcb2a3..bc962f07 100644 --- a/crates/core/database/src/models/audit_logs/model.rs +++ b/crates/core/database/src/models/audit_logs/model.rs @@ -191,7 +191,7 @@ impl AuditLogEntryAction { // running the insert inside a task can cause race conditions in the test so for now just dont use a task for tests for now // this will need to be redone for when we migrate to using rabbitmq here anyway. #[cfg(not(test))] - async_std::task::spawn({ + tokio::task::spawn({ let db = db.clone(); let entry = entry.clone();