Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix: 404 not found bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Apr 22, 2024
1 parent 48debf5 commit 0448f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/core/DiscordChannelManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class DiscordChannelManager {
*/
public async createForumChannel(guild: GuildSelectModel, webhook: GuildWebhookSelectModel, repository: string) {
const url = new URL(webhook.webhook);
const route = url.pathname as `/${string}`;
const route = url.pathname.replace("/api", "") as `/${string}`;
const res = await this.dispatch.post(`${route}?wait=true`, {
thread_name: repository,
content: `GitHub notifications for **${repository}**:\nhttps://github.com/${repository}`
Expand Down

0 comments on commit 0448f8b

Please sign in to comment.