Skip to content

Commit 6482b74

Browse files
authored
fix: use of double prefix for API url when editing titles
1 parent 460243f commit 6482b74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/routes/admin/titles.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export const setupAdminTitleRoutes = function(app: Express, prisma: PrismaClient
167167
try {
168168
if (NODE_ENV === 'production' && title.intra_title_id) {
169169
const api = await getAPIClient();
170-
const patch = await api.patch(`/v2/titles/${title.intra_title_id}`, {
170+
const patch = await api.patch(`/titles/${title.intra_title_id}`, {
171171
name: req.body.title,
172172
});
173173
if (!patch.ok) {

0 commit comments

Comments
 (0)