From 55039c631216d0fef8ce45bb60d712dd42b8b0d4 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Wed, 7 Dec 2022 07:49:49 -0600 Subject: [PATCH] Reorder Routes constructor arguments --- src/classes/Routes.ts | 2 +- src/experimental.ts | 4 ---- src/index.ts | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/classes/Routes.ts b/src/classes/Routes.ts index d0e54a1..23e3290 100644 --- a/src/classes/Routes.ts +++ b/src/classes/Routes.ts @@ -22,10 +22,10 @@ export default class Routes { #groupChangeCtx: Ctx constructor( - ctx: Ctx, interval: Interval, endpoint: string, logger: Logger, + ctx: Ctx, apiKey?: string ) { this.interval = interval diff --git a/src/experimental.ts b/src/experimental.ts index 6010b0f..2af4eb7 100644 --- a/src/experimental.ts +++ b/src/experimental.ts @@ -16,10 +16,6 @@ import Action from './classes/Action' import { BasicLayout } from './classes/Layout' class ExperimentalInterval extends Interval { - constructor(config: InternalConfig) { - super(config) - } - /* * Handle a serverless host endpoint request. Receives the deserialized request body object. */ diff --git a/src/index.ts b/src/index.ts index 2766721..3fbf325 100644 --- a/src/index.ts +++ b/src/index.ts @@ -160,10 +160,10 @@ export default class Interval { ) this.routes = new Routes( - this.#groupChangeCtx, this, this.#httpEndpoint, this.#logger, + this.#groupChangeCtx, this.#apiKey )