bugfix: send response back correctly

This commit is contained in:
Kegan Dougal 2022-02-28 15:46:27 +00:00
parent 155b8c7cae
commit c887ba31ea

View file

@ -125,11 +125,7 @@ func federatedSpacesHandler(
fsAPI: fsAPI, fsAPI: fsAPI,
inMemoryBatchCache: inMemoryBatchCache, inMemoryBatchCache: inMemoryBatchCache,
} }
res := w.walk() return w.walk()
return util.JSONResponse{
Code: 200,
JSON: res,
}
} }
func spacesHandler( func spacesHandler(
@ -158,11 +154,7 @@ func spacesHandler(
fsAPI: fsAPI, fsAPI: fsAPI,
inMemoryBatchCache: inMemoryBatchCache, inMemoryBatchCache: inMemoryBatchCache,
} }
res := w.walk() return w.walk()
return util.JSONResponse{
Code: 200,
JSON: res,
}
} }
} }