diff --git a/src/lib/util.ts b/src/lib/util.ts index c40762ac5..707e3cfbd 100644 --- a/src/lib/util.ts +++ b/src/lib/util.ts @@ -4,7 +4,6 @@ import { pathToRegexp } from 'path-to-regexp' import Glee from './glee.js' import { GleeFunctionEvent } from './index.d' import GleeMessage from './message.js' -import Message from './message.js' interface IValidateDataReturn { errors?: void | betterAjvErrors.IOutputError[], @@ -42,7 +41,7 @@ export const getParams = (path: string, channel: string): {[key: string]: string * @return {GleeMessage} */ export const duplicateMessage = (message: GleeMessage): GleeMessage => { - const newMessage = new Message({ + const newMessage = new GleeMessage({ payload: message.payload, headers: message.headers, channel: message.channel,