Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
updating function syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hcote committed Mar 25, 2021
1 parent e38d9b5 commit e367dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaffolds/hasura/scaffold.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HasuraData>(
(props) => (
Expand Down

0 comments on commit e367dd4

Please sign in to comment.