Skip to content

Commit

Permalink
appid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-codez committed Apr 2, 2024
1 parent 26e922c commit d0df2d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/extensions/message.extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { Message } from "..";

export function GotifyMessage({ logger, gotify }: TServiceParams) {
return {
async create(body: Message): Promise<Message> {
async create({ appid, ...body }: Message): Promise<Message> {
logger.trace(`message create`);
return await gotify.fetch({
body,
method: "post",
params: { token: appid },
url: "/message",
});
},
Expand Down

0 comments on commit d0df2d1

Please sign in to comment.