Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. {function deleteFunction(companyId, factoryId, functionId) {
  2. return Companies.update({
  3. "CompanyId": companyId,
  4. "Factories.FactoryId": factoryId,
  5. "Factories.Functions.FunctionId": functionId,
  6. }, {"$set": {"Factories.$.Functions.IsActive": false}}
  7. ).then(function (result) {
  8. console.log("Reached", result);
  9. return result
  10. }).catch(function (err) {
  11. logger.log(err);
  12. });
  13. }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement