From 4c61b2af5608e0a53865557a0360fe18e9b1f37a Mon Sep 17 00:00:00 2001 From: Jason Claxton Date: Tue, 22 Aug 2023 16:41:10 +0100 Subject: [PATCH 1/2] Remove unnecessary async While working on updating all repos `/status` endpoints to only return a static response I noticed that the controller for this endpoint is `async` when it doesn't need to be. I've therefore removed the `async` from the function. From 13caa6f6e3beffdd0e658e30011f14eb41eb780b Mon Sep 17 00:00:00 2001 From: Jason Claxton Date: Tue, 22 Aug 2023 16:43:12 +0100 Subject: [PATCH 2/2] Remove `async` --- app/controllers/root.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/root.controller.js b/app/controllers/root.controller.js index 0121ccbfea..ef031b7b70 100644 --- a/app/controllers/root.controller.js +++ b/app/controllers/root.controller.js @@ -5,7 +5,7 @@ * @module RootController */ -async function index (_request, _h) { +function index (_request, _h) { return { status: 'alive' } } module.exports = {