feat(order/offer): Refactored code to switch Order and Offer terminology

This commit is contained in:
Chris Troutner
2022-03-21 09:53:58 -07:00
parent b857eb9a6d
commit 83c66b363e
21 changed files with 610 additions and 619 deletions
+2 -2
View File
@@ -94,13 +94,13 @@ class Server {
try {
try {
// Delete an old webhook if it exists.
await webhookLib.deleteWebhook(`http://localhost:${config.port}/order`)
await webhookLib.deleteWebhook(`http://localhost:${config.port}/offer`)
} catch (err) {
/* exit quietly */
// console.log('err deleting webhook: ', err)
}
await webhookLib.createWebhook(`http://localhost:${config.port}/order`)
await webhookLib.createWebhook(`http://localhost:${config.port}/offer`)
console.log('Webhook created')
} catch (error) {
console.log('Webhook cant be created')