Skip to content

Commit a0d7c45

Browse files
authored
fix: update to correct recurrence endpoint (#127)
1 parent 3b41f40 commit a0d7c45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/server/routers/invoice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ export const invoiceRouter = router({
392392
.mutation(async ({ ctx, input }) => {
393393
const { requestId } = input;
394394

395-
const request = await apiClient.patch(
396-
`/v2/request/${requestId}/stop-recurrence`,
397-
);
395+
const request = await apiClient.patch(`/v2/request/${requestId}`, {
396+
isRecurrenceStopped: true,
397+
});
398398

399399
if (request.status !== 200) {
400400
throw new TRPCError({

0 commit comments

Comments
 (0)