mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-27 01:03:08 +03:00
feat(slates/create): add hydrateViewer param
This commit is contained in:
parent
f0aa203d0b
commit
c2dc502f84
@ -40,7 +40,8 @@ export default async (req, res) => {
|
||||
return res.status(500).send({ decorator: "SERVER_CREATE_SLATE_FAILED", error: true });
|
||||
}
|
||||
|
||||
ViewerManager.hydratePartial(id, { slates: true });
|
||||
const { hydrateViewer = true } = req.body.data;
|
||||
if (hydrateViewer) ViewerManager.hydratePartial(id, { slates: true });
|
||||
|
||||
SearchManager.indexSlate(slate);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user