From effdb348102712c6e3cb7c966fc529ac069e4b33 Mon Sep 17 00:00:00 2001 From: Marshall Sorenson Date: Mon, 18 Apr 2016 13:34:46 -0400 Subject: [PATCH] Fix .save() named function in Group.js Prototype function `group.save()` points to an incorrectly named `saveAccount` function. This is trivial and only affects stack traces. --- lib/resource/Group.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/resource/Group.js b/lib/resource/Group.js index 106001cf..238b51a4 100644 --- a/lib/resource/Group.js +++ b/lib/resource/Group.js @@ -31,4 +31,12 @@ Group.prototype.getAccountMemberships = function getGroupAccountMemberships(/* [ return this.dataStore.getResource(this.accountMemberships.href, args.options, require('./GroupMembership'), args.callback); }; +Group.prototype.save = function saveGroup(){ + var self = this; + var args = arguments; + self._applyCustomDataUpdatesIfNecessary(function(){ + Group.super_.prototype.save.apply(self, args); + }); +}; + module.exports = Group;