Invalid cloud function

i have an error running “getNFT” logs below…

2021-12-31T12:02:31.245Z - Error: Invalid function: “getNFT”
at handleCloudFunction (/moralis-server/lib/Routers/FunctionsRouter.js:119:13)
at /moralis-server/lib/PromiseRouter.js:85:20

my CF code:

Moralis.Cloud.define("getNFT", async (request) => {
  const logger = Moralis.Cloud.getLogger()
  
  
  let NFTId = request.params.nftId;
  let hexId = parseInt(NFTId).toString(16);
  let paddedHex = ("0000000000000000000000000000000000000000000000000000000000000000" + hexId).slice(-64);
  logger.info(paddedHex);
	return Moralis.Cloud.httpRequest({url: "https://3xpdpgao1qax.usemoralis.com/" + paddedHex + ".json"})
  .then(function(httpResponse){
    	return httpResponse.text;
  })
};```

that function should end with ) and not only with }

thank you!
I think might be worth me putting these snippets in visual code editor to spot any bracket issue.

Or or Moralis adding code validation into the editor??