@heroku/skynet 1.6.3 → 1.6.4
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.
|
@@ -41,13 +41,14 @@ async function run (context) {
|
|
|
41
41
|
|
|
42
42
|
if (file) {
|
|
43
43
|
let apps = await readlines(file)
|
|
44
|
-
|
|
44
|
+
let response = await skynet.bulkSuspendAppOwner(apps.join(), notes, category)
|
|
45
|
+
cli.log(response)
|
|
45
46
|
} else {
|
|
46
47
|
if (!app) {
|
|
47
48
|
throw new Error('Required flag: --owner OWNER or --infile FILE')
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
let response = await
|
|
51
|
+
let response = await skynet.suspendAppOwner(app, notes, category, force)
|
|
51
52
|
response = JSON.parse(response)
|
|
52
53
|
cli.log(`${response.status}. ${response.message}`)
|
|
53
54
|
}
|
package/commands/suspend/user.js
CHANGED
|
@@ -42,13 +42,14 @@ async function run (context) {
|
|
|
42
42
|
|
|
43
43
|
if (file) {
|
|
44
44
|
let users = await readlines(file)
|
|
45
|
-
|
|
45
|
+
let response = await skynet.bulkSuspendUsers(users.join(), notes, category)
|
|
46
|
+
cli.log(response)
|
|
46
47
|
} else {
|
|
47
48
|
if (!user) {
|
|
48
49
|
throw new Error('Required flag: --user USER or --infile FILE')
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
let response = await
|
|
52
|
+
let response = await skynet.suspendUser(user, notes, category, notify, force)
|
|
52
53
|
response = JSON.parse(response)
|
|
53
54
|
cli.log(`${response.status}. ${response.message}`)
|
|
54
55
|
}
|