From 4e41cd7d550906bd588dd2564ad2a09c744f5894 Mon Sep 17 00:00:00 2001
From: Kapil Viren Ahuja <k.v.ahuja@gmail.com>
Date: Fri, 3 Mar 2017 12:54:17 +0530
Subject: Fixes col type as per defect in Vainsocial

---
 queries/participant.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'queries/participant.sql')

diff --git a/queries/participant.sql b/queries/participant.sql
index 8be7825..d4490e9 100644
--- a/queries/participant.sql
+++ b/queries/participant.sql
@@ -26,7 +26,7 @@ COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'level', ''), '0'):
 COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'minionKills', ''), '0')::int AS "minionKills",
 COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'skillTier', ''), '0')::int AS "skillTier",
 COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'skinKey', ''), '0') AS "skinKey",
-COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'turretKills', ''), '0')::int::bool AS "turretKills",
+COALESCE(NULLIF(participant->'data'->'attributes'->'stats'->>'turretKills', ''), '0')::int AS "turretKills",
 (participant->'data'->'attributes'->'stats'->>'wentAfk')::bool AS "wentAfk",
 (participant->'data'->'attributes'->'stats'->>'winner')::bool AS "winner",
 participant->'data'->'attributes'->'stats'->'itemGrants' AS "itemGrants",
-- 
cgit v1.3.1

