Skip to content

Commit 6093752

Browse files
Fixed setup script (PalisadoesFoundation#2512)
* Fixed setup script * Update package-lock.json * Fixed linting error
1 parent 69f027c commit 6093752

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

setup.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export async function wipeExistingData(url: string): Promise<void> {
219219
}
220220
console.log("All existing data has been deleted.");
221221
}
222-
} catch (error) {
222+
} catch {
223223
console.error("Could not connect to database to check for data");
224224
}
225225
client.close();
@@ -246,7 +246,7 @@ export async function checkDb(url: string): Promise<boolean> {
246246
} else {
247247
dbEmpty = true;
248248
}
249-
} catch (error) {
249+
} catch {
250250
console.error("Could not connect to database to check for data");
251251
}
252252
client.close();
@@ -706,7 +706,7 @@ async function main(): Promise<void> {
706706
const { shouldGenerateAccessToken } = await inquirer.prompt({
707707
type: "confirm",
708708
name: "shouldGenerateAccessToken",
709-
message: "Would you like to generate a new access token secret?",
709+
message: "Would you like us to auto-generate a new access token secret?",
710710
default: process.env.ACCESS_TOKEN_SECRET ? false : true,
711711
});
712712

@@ -722,7 +722,8 @@ async function main(): Promise<void> {
722722
const { shouldGenerateRefreshToken } = await inquirer.prompt({
723723
type: "confirm",
724724
name: "shouldGenerateRefreshToken",
725-
message: "Would you like to generate a new refresh token secret?",
725+
message:
726+
"Would you like to us to auto-generate a new refresh token secret?",
726727
default: process.env.REFRESH_TOKEN_SECRET ? false : true,
727728
});
728729

@@ -859,7 +860,7 @@ async function main(): Promise<void> {
859860
{
860861
type: "input",
861862
name: "serverPort",
862-
message: "Enter the server port:",
863+
message: "Enter the Talawa-API server port:",
863864
default: process.env.SERVER_PORT || 4000,
864865
},
865866
]);
@@ -972,7 +973,8 @@ async function main(): Promise<void> {
972973
const { overwriteDefaultData } = await inquirer.prompt({
973974
type: "confirm",
974975
name: "overwriteDefaultData",
975-
message: "Do you want to import default data?",
976+
message:
977+
"Do you want to import the required default data to start using Talawa in a production environment?",
976978
default: false,
977979
});
978980
if (overwriteDefaultData) {
@@ -982,7 +984,8 @@ async function main(): Promise<void> {
982984
const { overwriteSampleData } = await inquirer.prompt({
983985
type: "confirm",
984986
name: "overwriteSampleData",
985-
message: "Do you want to import sample data?",
987+
message:
988+
"Do you want to import Talawa sample data for testing and evaluation purposes?",
986989
default: false,
987990
});
988991
if (overwriteSampleData) {
@@ -995,7 +998,8 @@ async function main(): Promise<void> {
995998
const { shouldImportSampleData } = await inquirer.prompt({
996999
type: "confirm",
9971000
name: "shouldImportSampleData",
998-
message: "Do you want to import Sample data?",
1001+
message:
1002+
"Do you want to import Talawa sample data for testing and evaluation purposes?",
9991003
default: false,
10001004
});
10011005
if (shouldImportSampleData) {

0 commit comments

Comments
 (0)