mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
must be singelquotes
This commit is contained in:
parent
9b36f75c54
commit
7cca6db685
@ -22,7 +22,7 @@ module.exports = function(db) {
|
|||||||
return db
|
return db
|
||||||
.select(EVENT_COLUMNS)
|
.select(EVENT_COLUMNS)
|
||||||
.from('events')
|
.from('events')
|
||||||
.whereRaw('data ->> "name" = ?', [name])
|
.whereRaw('data ->> \'name\' = ?', [name])
|
||||||
.orderBy('created_at', 'desc')
|
.orderBy('created_at', 'desc')
|
||||||
.map(rowToEvent);
|
.map(rowToEvent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user