PatrickAlphaC / nextjs-nft-marketplace-moralis-fcc

44 stars 50 forks source link

get logger function before using it #19

Closed alymurtazamemon closed 2 years ago

alymurtazamemon commented 2 years ago

In the updateActiveItem.js we should call the:

const logger = Moralis.Cloud.getLogger()

Before using it:

const logger = Moralis.Cloud.getLogger()
logger.info(`Marketplace | Object: ${request.object}`)

Set in two afterSave functions ItemCanceled & ItemBought

alymurtazamemon commented 2 years ago

@PatrickAlphaC