Skip to content

Commit

Permalink
quotes: fix incorrect socket calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Nov 16, 2018
1 parent dde947a commit 218295e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion public/pages/quotes/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
quote: this.quote,
tags: this.tags.split(',').map((o) => o.trim())
}
this.socket.emit('update', [data], (err, _id) => {
this.socket.emit('update', { items: [data] }, (err, _id) => {
if (err) {
console.error(err)
return this.states.save = 3
Expand Down
1 change: 0 additions & 1 deletion public/pages/quotes/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
created: function () {
this.socket.emit('find', {}, (err, items) => {
this.quotesFromDb = items
console.log(items)
})
},
watch: {
Expand Down

0 comments on commit 218295e

Please sign in to comment.