Skip to content

Commit 8b96db0

Browse files
committed
gitsync: fix use of title class with deprecated lowercase name
1 parent 0318006 commit 8b96db0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webservice/routes/gitsync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ router.post('/savepage', upload.none(), async (req, res) => {
1616
OAuth2AccessToken: req.body.oauth2Token,
1717
userAgent: 'gitsync ([[en:User:SD0001]])'
1818
})
19-
if (new client.title(req.body.page).namespace === 0) {
19+
if (new client.Title(req.body.page).namespace === 0) {
2020
return res.status(400).contentType('json').send({
2121
error: 'Aborting edit to target page as it is in main namespace'
2222
})

0 commit comments

Comments
 (0)