must be singelquotes

This commit is contained in:
sveisvei
2016-06-18 22:55:33 +02:00
committed by Ivar Conradi Østhus
parent 9b36f75c54
commit 7cca6db685
+1 -1
View File
@@ -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);
}