Hey guys,
Here is my cloud function:
/******/ (() => { // webpackBootstrap
2/******/ var __webpack_modules__ = ({
3
4/***/ 227:
5/***/ ((module) => {
6
7module.exports = eval("require")("moralis/types");
8
9
10/***/ })
11
12/******/ });
13/************************************************************************/
14/******/ // The module cache
15/******/ var __webpack_module_cache__ = {};
16/******/
17/******/ // The require function
18/******/ function __nccwpck_require__(moduleId) {
19/******/ // Check if module is in cache
20/******/ var cachedModule = __webpack_module_cache__[moduleId];
21/******/ if (cachedModule !== undefined) {
22/******/ return cachedModule.exports;
23/******/ }
24/******/ // Create a new module (and put it into the cache)
25/******/ var module = __webpack_module_cache__[moduleId] = {
26/******/ // no module.id needed
27/******/ // no module.loaded needed
28/******/ exports: {}
29/******/ };
30/******/
31/******/ // Execute the module function
32/******/ var threw = true;
33/******/ try {
34/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__);
35/******/ threw = false;
36/******/ } finally {
37/******/ if(threw) delete __webpack_module_cache__[moduleId];
38/******/ }
39/******/
40/******/ // Return the exports of the module
41/******/ return module.exports;
42/******/ }
43/******/
44/************************************************************************/
45/******/ /* webpack/runtime/compat */
46/******/
47/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
48/******/
49/************************************************************************/
50var __webpack_exports__ = {};
51// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
52(() => {
53const { default: Moralis } = __nccwpck_require__(227);
54
55//add Whoopy to active whoopys once created
56//start listening to active whoopys for events
57//remove from active whoopys 24 hours after winners picked
58
59
60Moralis.Cloud.afterSave("WhoopyCreated", async (request) => {
61 const confirmed = request.object.get("confirmed")
62 const logger = Moralis.Cloud.getLogger()
63 logger.info("Looking for confirmed tx")
64})
65
66})();
67
68module.exports = __webpack_exports__;
69/******/ })()
70;
However, for some reason, my logs are logger.info is not working. I am able to save the event successfully and it is showing up in my Database, so I can’t figure out what the issue is. Any help would be appreciated. Thanks!
PS: Server url is: https://mgjfj1lq8sbh.usemoralis.com:2053/server