From d940ad82f7e34576bf6cc6b8a93cbc298765315e Mon Sep 17 00:00:00 2001
From: kvahuja <k.v.ahuja@gmail.com>
Date: Sun, 19 Feb 2017 16:01:10 +0530
Subject: change to how the FK are managed in EORM

---
 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 a84274d..b7685a9 100644
--- a/queries/participant.sql
+++ b/queries/participant.sql
@@ -1,7 +1,7 @@
 SELECT
 
 id AS "apiId",
-relationships->'player'->'data'->>'id' AS "playerId",
+relationships->'player'->'data'->>'id' AS "player_apiId",
 
 attributes->>'actor' AS "hero",
 (attributes->'stats'->>'assists')::int AS "assists",
-- 
cgit v1.3.1

