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

Incorrect order of getLogger and logger.info in cloud functions #18

Open
adityabhattad2021 opened this issue Aug 30, 2022 · 0 comments
Open

Comments

@adityabhattad2021
Copy link

Here is the relevant code snippet from cloudFunctions.js

Moralis.Cloud.afterSave("ItemCanceled", async (request) => {
    const confirmed = request.object.get("confirmed")
    logger.info(`Marketplace | Object: ${request.object}`)
    if (confirmed) {
        const logger = Moralis.Cloud.getLogger()
        const ActiveItem = Moralis.Object.extend("ActiveItem")
        const query = new Moralis.Query(ActiveItem)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant