mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 21:01:33 +02:00
[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:
@@ -157,7 +157,7 @@ function ipMatcherAffiliation(userId) {
|
||||
if (error != null) {
|
||||
return callback(error)
|
||||
}
|
||||
if (response.statusCode !== 200) {
|
||||
if (response.statusCode !== 200 || !body) {
|
||||
return callback()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user