From d0df2d1534e103b7932de3d218d49609b2b04ac2 Mon Sep 17 00:00:00 2001 From: Zoe Codez Date: Mon, 1 Apr 2024 20:27:28 -0500 Subject: [PATCH] appid fix --- package.json | 2 +- src/extensions/message.extension.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 574ddec..e343b43 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@digital-alchemy/gotify-extension", "repository": "https://github.com/Digital-Alchemy-TS/gotify", "homepage": "https://docs.digital-alchemy.app/Gotify", - "version": "0.3.2", + "version": "0.3.3", "scripts": { "build": "rm -rf dist/; tsc", "lint": "eslint src", diff --git a/src/extensions/message.extension.ts b/src/extensions/message.extension.ts index 8d38413..e0f5731 100644 --- a/src/extensions/message.extension.ts +++ b/src/extensions/message.extension.ts @@ -4,11 +4,12 @@ import { Message } from ".."; export function GotifyMessage({ logger, gotify }: TServiceParams) { return { - async create(body: Message): Promise { + async create({ appid, ...body }: Message): Promise { logger.trace(`message create`); return await gotify.fetch({ body, method: "post", + params: { token: appid }, url: "/message", }); },