Skip to content

Commit

Permalink
fix update return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jun 13, 2023
1 parent 775d4b2 commit 3e0521a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/data/server/search/routes/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ export function registerSessionRoutes(router: DataPluginRouter, logger: Logger):
// todo
const response = await searchContext.updateSession(id, { name, expires });

return res.ok();
return res.ok({
body: response,
});
} catch (err) {
logger.error(err);
return reportServerError(res, err);
Expand Down

0 comments on commit 3e0521a

Please sign in to comment.