From f9d9059e7346801ca8a4cbe2e2d3bc6fa48d85e0 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 29 Jun 2024 18:20:01 +0100 Subject: [PATCH] fix: bot model test did not destruct tuple --- README.md | 2 +- crates/core/database/src/models/bots/model.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c47a625..b391cc4 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ Now run tests for whichever database: ```sh TEST_DB=REFERENCE cargo nextest run -TEST_DB=MONGOBD cargo nextest run +TEST_DB=MONGODB cargo nextest run ``` ## License diff --git a/crates/core/database/src/models/bots/model.rs b/crates/core/database/src/models/bots/model.rs index 922d574..0a79604 100644 --- a/crates/core/database/src/models/bots/model.rs +++ b/crates/core/database/src/models/bots/model.rs @@ -172,7 +172,7 @@ mod tests { .await .unwrap(); - let bot = Bot::create( + let (bot, _) = Bot::create( &db, "Bot Name".to_string(), &owner,