@heroku/skynet 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commands/suspend/user.js +1 -1
- package/lib/skynet.js +4 -2
- package/package.json +1 -1
package/commands/suspend/user.js
CHANGED
|
@@ -42,7 +42,7 @@ async function run (context) {
|
|
|
42
42
|
|
|
43
43
|
if (file) {
|
|
44
44
|
let users = await readlines(file)
|
|
45
|
-
let response = await skynet.bulkSuspendUsers(users.join(), notes, category)
|
|
45
|
+
let response = await skynet.bulkSuspendUsers(users.join(), notes, category, notify, force)
|
|
46
46
|
cli.log(response)
|
|
47
47
|
} else {
|
|
48
48
|
if (!user) {
|
package/lib/skynet.js
CHANGED
|
@@ -135,13 +135,15 @@ module.exports = class SkynetAPI {
|
|
|
135
135
|
})
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
bulkSuspendUsers (users, notes, category) {
|
|
138
|
+
bulkSuspendUsers (users, notes, category, notify, force = false) {
|
|
139
139
|
var body = {
|
|
140
140
|
value: users,
|
|
141
141
|
reason: notes,
|
|
142
142
|
method: 'skynet-cli',
|
|
143
143
|
category: category,
|
|
144
|
-
bulk: 'true'
|
|
144
|
+
bulk: 'true',
|
|
145
|
+
force: force,
|
|
146
|
+
notify: notify
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
return this.request(`/suspend/user`, {
|