From 64092eeddd804a434809394a4e6b32c0768d8207 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 3 Oct 2020 22:31:34 -0600 Subject: [PATCH] delete old query --- src/entity/gateway/postgres/postgres.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/entity/gateway/postgres/postgres.rs b/src/entity/gateway/postgres/postgres.rs index 55ef325..dc9e2ea 100644 --- a/src/entity/gateway/postgres/postgres.rs +++ b/src/entity/gateway/postgres/postgres.rs @@ -318,10 +318,6 @@ impl EntityGateway for PostgresGateway { } async fn get_items_by_character(&self, char: &CharacterEntity) -> Vec { - let q = r#"select item.id, item_location.location, item.item from item_location - join item on item.id = item_location.item - where cast (location -> 'Inventory' ->> 'character_id' as integer) = $1 - or cast (location -> 'Bank' ->> 'character_id' as integer) = $1"#; let q = r#"select * from ( select distinct on (item_location.item) item.id, item_location.location, item.item from item_location join item on item.id = item_location.item