Skip to content

Instantly share code, notes, and snippets.

@antaranyan
Last active December 2, 2019 12:32
Show Gist options
  • Select an option

  • Save antaranyan/2c44e86706aa392ec7d0531c918a12d3 to your computer and use it in GitHub Desktop.

Select an option

Save antaranyan/2c44e86706aa392ec7d0531c918a12d3 to your computer and use it in GitHub Desktop.
Maze 🚧
  • bulkUpdateMenuProductsViaCSV (service action)
    • TagController.getAll (service controller)

      • Tags.findAll (model method)
    • SubTagController.getAll (service controller)

      • SubTags.findAll (model method)
    • updateProduct (service action)

      • model.update (model method)

        where model = leaflogixProductModel
                    | menueItemModel
                    | productModel
        
    • __getProductIdsFromUids (service action)

      • model.findAll (model method)

        where model = leaflogixProductModel
                    | menueItemModel
                    | productModel
        
    • __reloadTVMenusAndPublishInLeafly (service action)

      • DB.query (db query)

      • __getProductsMenusAndDevices (service method)

        method = __getBiotrackTHCMenusDevices (db query)
               | __getGreenbitsMenusDevices   (db query)
               | __getLeaflogixMenusDevices   (db query)
        
      • broker.emit('menu.updated') (broker call)

      • broker.call('v1.leafly.publishMenu') (broker call)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment