Skip to content

Commit

Permalink
switch from hash router in webapp urls
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 4, 2024
1 parent ee7dc00 commit f5cc708
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/v2/service/addon.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,7 @@ export default class AddonService {

discordEmbed({
title,
url: `https://webapp.faithfulpack.net/#/review/addons?status=${status}&id=${String(
addon.id,
)}`,
url: `https://webapp.faithfulpack.net/review/addons?status=${status}&id=${addon.id}`,
author: {
name,
icon_url:
Expand Down
2 changes: 1 addition & 1 deletion src/v2/tools/discordEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export async function discordEmbed(embed: APIEmbed): Promise<void> {
if (!process.env.WEBHOOK_URL) return;

// faithful green by default
if (!embed.color) embed.color = 7784773;
embed.color ??= 7784773;

await axios.post(process.env.WEBHOOK_URL, { embeds: [embed] });
}

0 comments on commit f5cc708

Please sign in to comment.