feat(View): return created view in the response

This commit is contained in:
Aminejv 2022-09-29 14:01:18 +01:00
parent 15ece0ae64
commit bc667a3566

View File

@ -63,5 +63,5 @@ export default async (req, res) => {
await ViewerManager.hydratePartial(id, { viewer: true });
return res.status(200).send({ decorator: "SERVER_CREATE_VIEW_SUCCESS" });
return res.status(200).send({ decorator: "SERVER_CREATE_VIEW_SUCCESS", data: response });
};