Skip to content

Commit 8ea5682

Browse files
committed
chore: nit fix
Nitpick, can we have consistent naming for method? As all others are deleteX, rename to deleteGroups
1 parent 7a7f66b commit 8ea5682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Services/cayenne.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,11 @@ class Cayenne extends Request {
162162
}
163163

164164
/**
165-
* Destroys all groups and attributes for a user
165+
* Delete all groups and attributes for a user
166166
* @param {string} applicationId
167167
* @param {string} userId The user id of the user that owns the parent device
168168
*/
169-
destroyGroups(applicationId, userId) {
169+
deleteGroups(applicationId, userId) {
170170
const path = `/things/groups`;
171171
const query = this.setTenant(applicationId, userId);
172172
return this.send('DELETE', path, { query });

0 commit comments

Comments
 (0)