From 7cca6db685b01104ec02f67769055d9397d5ae23 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Sat, 18 Jun 2016 22:55:33 +0200 Subject: [PATCH] must be singelquotes --- packages/unleash-api/lib/db/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/unleash-api/lib/db/event.js b/packages/unleash-api/lib/db/event.js index 78b2218d7d..8196d1cb89 100644 --- a/packages/unleash-api/lib/db/event.js +++ b/packages/unleash-api/lib/db/event.js @@ -22,7 +22,7 @@ module.exports = function(db) { return db .select(EVENT_COLUMNS) .from('events') - .whereRaw('data ->> "name" = ?', [name]) + .whereRaw('data ->> \'name\' = ?', [name]) .orderBy('created_at', 'desc') .map(rowToEvent); }