fix: remove event type
This commit is contained in:
parent
b98d73cd6e
commit
df4dd5ccb8
4 changed files with 4 additions and 22 deletions
|
|
@ -81,12 +81,7 @@ cachedVariables.on('expired', (key, val) => {
|
|||
db.connect({ direct: true }).then(sco => {
|
||||
sco.client.on('notification', data => {
|
||||
const parsedData = JSON.parse(data.payload)
|
||||
switch (parsedData.type) {
|
||||
case 'reload':
|
||||
return reload(parsedData.schema)
|
||||
default:
|
||||
break
|
||||
}
|
||||
return reload(parsedData.schema)
|
||||
})
|
||||
return sco.none('LISTEN $1:name', 'reload')
|
||||
}).catch(console.error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue