Skip to content

Commit

Permalink
Reorder Routes constructor arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Dec 7, 2022
1 parent 6c2132f commit 55039c6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/classes/Routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default class Routes {
#groupChangeCtx: Ctx<void>

constructor(
ctx: Ctx<void>,
interval: Interval,
endpoint: string,
logger: Logger,
ctx: Ctx<void>,
apiKey?: string
) {
this.interval = interval
Expand Down
4 changes: 0 additions & 4 deletions src/experimental.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ export default class Interval {
)

this.routes = new Routes(
this.#groupChangeCtx,
this,
this.#httpEndpoint,
this.#logger,
this.#groupChangeCtx,
this.#apiKey
)

Expand Down

0 comments on commit 55039c6

Please sign in to comment.