Skip to content

Commit

Permalink
updated db command
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Oct 7, 2023
1 parent 864203d commit 78974ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export default new app.Command({

const copy = result.slice()

while (JSON.stringify(copy, null, 2).length > 4050) {
while (JSON.stringify(copy, null, 2).length > 4049) {
copy.splice(copy.indexOf("..."), 1)
copy.push("...")
}

return JSON.stringify(copy)
})(result),
})(result).slice(0, 4050),
})
)
.setFooter(`Result of : ${query}`),
Expand Down

0 comments on commit 78974ab

Please sign in to comment.