+2
-2
packages/api/routes/api/v1/currency.ts
+2
-2
packages/api/routes/api/v1/currency.ts
···
18
18
}
19
19
20
20
currency.get("/", isAuthenticated, async (c) => {
21
-
const serviceType = c.req.param("serviceType");
22
-
const serviceId = c.req.param("serviceId");
21
+
const serviceType = c.req.query("serviceType");
22
+
const serviceId = c.req.query("serviceId");
23
23
24
24
if (!serviceId || !serviceType) return c.json({ error: "Missing serviceId or serviceType" }, 400);
25
25
+2
-2
packages/bot/src/modules/user/commands/consent/update.ts
+2
-2
packages/bot/src/modules/user/commands/consent/update.ts
···
1
-
import { MessageFlags, SlashCommandBuilder } from "discord.js";
1
+
import { MessageFlags, SlashCommandSubcommandBuilder } from "discord.js";
2
2
import type { Command } from "@voidy/framework";
3
3
import { UserConfig } from "../../schemas/UserConfig";
4
4
5
5
export default {
6
6
id: "user.consent.update",
7
-
data: new SlashCommandBuilder()
7
+
data: new SlashCommandSubcommandBuilder()
8
8
.setName("Update Consent")
9
9
.setDescription("Update your user consent choices.")
10
10
.addStringOption((option) =>
+2
-2
packages/bot/src/modules/user/commands/integration/update.ts
+2
-2
packages/bot/src/modules/user/commands/integration/update.ts
···
1
-
import { MessageFlags, SlashCommandBuilder } from "discord.js";
1
+
import { MessageFlags, SlashCommandSubcommandGroupBuilder } from "discord.js";
2
2
import type { Command } from "@voidy/framework";
3
3
import { UserIntegration } from "../../schemas/UserIntegration";
4
4
5
5
export default {
6
6
id: "user.integration.update",
7
-
data: new SlashCommandBuilder()
7
+
data: new SlashCommandSubcommandGroupBuilder()
8
8
.setName("Update or link integration")
9
9
.setDescription("Update one of your external service integrations.")
10
10
.addStringOption((option) =>