From 466686561b582251b0e03cb08a636e5cd30dea31 Mon Sep 17 00:00:00 2001 From: Christian Nogueras Date: Mon, 31 Jan 2022 00:26:48 -0400 Subject: [PATCH] change destructuring (#173) --- bin/agendash-standalone-hapi.js | 2 +- bin/agendash-standalone-koa.js | 2 +- bin/agendash-standalone.js | 2 +- lib/middlewares/README.md | 2 +- test/test-express.js | 2 +- test/test-hapi.js | 2 +- test/test-koa.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/agendash-standalone-hapi.js b/bin/agendash-standalone-hapi.js index fef1a8c6..9ef10516 100755 --- a/bin/agendash-standalone-hapi.js +++ b/bin/agendash-standalone-hapi.js @@ -1,6 +1,6 @@ #!/usr/bin/env node "use strict"; -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agendash = require("../app"); const Hapi = require("@hapi/hapi"); const program = require("commander"); diff --git a/bin/agendash-standalone-koa.js b/bin/agendash-standalone-koa.js index 80f5584a..fb813f85 100755 --- a/bin/agendash-standalone-koa.js +++ b/bin/agendash-standalone-koa.js @@ -1,6 +1,6 @@ #!/usr/bin/env node "use strict"; -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agendash = require("../app"); const Koa = require("koa"); const program = require("commander"); diff --git a/bin/agendash-standalone.js b/bin/agendash-standalone.js index d9e5d322..6df0c89a 100755 --- a/bin/agendash-standalone.js +++ b/bin/agendash-standalone.js @@ -1,7 +1,7 @@ #!/usr/bin/env node "use strict"; const http = require("http"); -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agendash = require("../app"); const express = require("express"); const program = require("commander"); diff --git a/lib/middlewares/README.md b/lib/middlewares/README.md index 4edda5b7..79ee7e0b 100644 --- a/lib/middlewares/README.md +++ b/lib/middlewares/README.md @@ -18,7 +18,7 @@ Then use it as follows: 'use strict'; const Hapi = require('hapi'); -const Agenda = require('agenda'); +const { Agenda } = require('agenda'); const Agendash = require('agendash'); var agenda = new Agenda({ diff --git a/test/test-express.js b/test/test-express.js index 50f3a0f3..63d3247c 100644 --- a/test/test-express.js +++ b/test/test-express.js @@ -1,7 +1,7 @@ const test = require("ava"); const supertest = require("supertest"); const express = require("express"); -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agenda = new Agenda().database( "mongodb://127.0.0.1/agendash-test-db", diff --git a/test/test-hapi.js b/test/test-hapi.js index ce167989..e37c2306 100644 --- a/test/test-hapi.js +++ b/test/test-hapi.js @@ -1,6 +1,6 @@ const test = require("ava"); const supertest = require("supertest"); -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agenda = new Agenda().database( "mongodb://127.0.0.1/agendash-test-db", diff --git a/test/test-koa.js b/test/test-koa.js index 1420c6da..7f1e3818 100644 --- a/test/test-koa.js +++ b/test/test-koa.js @@ -1,7 +1,7 @@ const test = require("ava"); const supertest = require("supertest"); const Koa = require("koa"); -const Agenda = require("agenda"); +const { Agenda } = require("agenda"); const agenda = new Agenda().database( "mongodb://127.0.0.1/agendash-test-db",