From 771f9fc5f188affc61081b371ddd2ded9e680e7b Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 15 Mar 2023 09:42:24 +0200 Subject: [PATCH] fix(api): use gamestate consts --- api/src/actions/game/create.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/actions/game/create.rs b/api/src/actions/game/create.rs index d6cf85c..050b6a5 100644 --- a/api/src/actions/game/create.rs +++ b/api/src/actions/game/create.rs @@ -6,8 +6,8 @@ * See LICENSE for licensing information. */ -use diesel::{ExpressionMethods, PgConnection, QueryDsl, RunQueryDsl}; -use laurelin_shared::error::api::APIError; +use diesel::{PgConnection, RunQueryDsl}; +use laurelin_shared::{error::api::APIError, types::game::GAMESTATE_FORMING}; use uuid::Uuid; use crate::{ @@ -36,7 +36,7 @@ pub(crate) fn create(conn: &mut PgConnection, user_id: &str) -> Result