fix: store failed orders also
This commit is contained in:
parent
bb376b43f2
commit
acc6ed45c5
3 changed files with 90 additions and 51 deletions
|
|
@ -17,10 +17,11 @@ async function directMessages(path) {
|
|||
messagesAsJson: function () {
|
||||
return this.messages.map(m => {
|
||||
try {
|
||||
const message = JSON.parse(m.message)
|
||||
return {
|
||||
isJson: true,
|
||||
isJson: message.type >= 0,
|
||||
...m,
|
||||
message: JSON.parse(m.message)
|
||||
message
|
||||
}
|
||||
} catch (error) {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue