From e367dd46dc60f7be6195086f0552ba53e4abbe1f Mon Sep 17 00:00:00 2001 From: Hunter Cote Date: Wed, 24 Mar 2021 18:10:35 -0600 Subject: [PATCH] updating function syntax --- scaffolds/hasura/scaffold.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scaffolds/hasura/scaffold.tsx b/scaffolds/hasura/scaffold.tsx index 014a011..3c0c512 100644 --- a/scaffolds/hasura/scaffold.tsx +++ b/scaffolds/hasura/scaffold.tsx @@ -12,10 +12,10 @@ type HasuraData = NpmClientPrompt.Data & jwtSecret: string; }; -const generateJwtSecret = () => { +function generateJwtSecret() { const buffer = crypto.randomBytes(32); return buffer.toString('hex'); -}; +} export default createScaffold( (props) => (