[v1, web] Return "200 null" instead of no content in v2/api/v2/users/:userId/ip_matcher when there is no data, so it can be read as JSON in the frontend (#28913)

⚠️ Deploy this to `web` first so the breaking change is handled correctly

See https://github.com/overleaf/internal/pull/28792

GitOrigin-RevId: 3cc0344643557541791571dac7338bf878328095
This commit is contained in:
Antoine Clausse
2025-10-09 15:42:31 +02:00
committed by Copybot
parent f28951e203
commit e29de2b881

View File

@@ -157,7 +157,7 @@ function ipMatcherAffiliation(userId) {
if (error != null) {
return callback(error)
}
if (response.statusCode !== 200) {
if (response.statusCode !== 200 || !body) {
return callback()
}