Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {function deleteFunction(companyId, factoryId, functionId) {
- return Companies.update({
- "CompanyId": companyId,
- "Factories.FactoryId": factoryId,
- "Factories.Functions.FunctionId": functionId,
- }, {"$set": {"Factories.$.Functions.IsActive": false}}
- ).then(function (result) {
- console.log("Reached", result);
- return result
- }).catch(function (err) {
- logger.log(err);
- });
- }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement