docs: use correct spelling of synchronization (#8204)

syncronization -> synchronization
This commit is contained in:
Jakub Semik 2021-10-02 18:39:59 +02:00 committed by GitHub
parent a868078f8f
commit d4111ce0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -47,12 +47,12 @@ export class SchemaLogCommand implements yargs.CommandModule {
connection = await createConnection(connectionOptions);
const sqlInMemory = await connection.driver.createSchemaBuilder().log();
if (sqlInMemory.upQueries.length === 0) {
console.log(chalk.yellow("Your schema is up to date - there are no queries to be executed by schema syncronization."));
console.log(chalk.yellow("Your schema is up to date - there are no queries to be executed by schema synchronization."));
} else {
const lengthSeparators = String(sqlInMemory.upQueries.length).split("").map(char => "-").join("");
console.log(chalk.yellow("---------------------------------------------------------------" + lengthSeparators));
console.log(chalk.yellow.bold(`-- Schema syncronization will execute following sql queries (${chalk.white(sqlInMemory.upQueries.length.toString())}):`));
console.log(chalk.yellow.bold(`-- Schema synchronization will execute following sql queries (${chalk.white(sqlInMemory.upQueries.length.toString())}):`));
console.log(chalk.yellow("---------------------------------------------------------------" + lengthSeparators));
sqlInMemory.upQueries.forEach(upQuery => {

View File

@ -45,7 +45,7 @@ export class SchemaSyncCommand implements yargs.CommandModule {
await connection.synchronize();
await connection.close();
console.log(chalk.green("Schema syncronization finished successfully."));
console.log(chalk.green("Schema synchronization finished successfully."));
} catch (err) {
if (connection) await (connection as Connection).close();