Skip to content

Commit 705167b

Browse files
committed
Only the email is actually needed, so don't ask for id, name, or slug
1 parent 9eb73b2 commit 705167b

File tree

1 file changed

+0
-48
lines changed

1 file changed

+0
-48
lines changed

tasks/json-clean.js

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -234,51 +234,6 @@ const getFullTaskList = (options) => {
234234
let theData = _.clone(user.originalData);
235235

236236
const promptOptions = [
237-
{
238-
type: 'input',
239-
name: 'userID',
240-
message: 'The new ID:',
241-
filter: function (val) {
242-
return val.trim();
243-
},
244-
validate: (input) => {
245-
if (input.length) {
246-
return true;
247-
} else {
248-
return 'Please provide an ID';
249-
}
250-
}
251-
},
252-
{
253-
type: 'input',
254-
name: 'userName',
255-
message: 'The new name:',
256-
filter: function (val) {
257-
return val.trim();
258-
},
259-
validate: (input) => {
260-
if (input.length) {
261-
return true;
262-
} else {
263-
return 'Please provide a name';
264-
}
265-
}
266-
},
267-
{
268-
type: 'input',
269-
name: 'userSlug',
270-
message: 'The new slug:',
271-
filter: function (val) {
272-
return val.trim();
273-
},
274-
validate: (input) => {
275-
if (input.length) {
276-
return true;
277-
} else {
278-
return 'Please provide a slug';
279-
}
280-
}
281-
},
282237
{
283238
type: 'input',
284239
name: 'userEmail',
@@ -298,9 +253,6 @@ const getFullTaskList = (options) => {
298253

299254
await inquirer.prompt(promptOptions).then(async (answers) => {
300255
// Prompt for updates to these values
301-
theData.id = answers.userID; // Something new
302-
theData.name = answers.userName; // Something new
303-
theData.slug = answers.userSlug; // Something new
304256
theData.email = answers.userEmail; // Something new
305257

306258
// Add the new data to the user object

0 commit comments

Comments
 (0)