mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
adjusted flow
This commit is contained in:
+9
-9
@@ -35,15 +35,6 @@ program
|
||||
|
||||
const performSetup = async () => {
|
||||
|
||||
if (program.defaults) {
|
||||
await SettingsService.init();
|
||||
|
||||
console.log('Settings created.');
|
||||
console.log('\nTalk is now installed!');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Get the current settings, we are expecing an error here.
|
||||
try {
|
||||
|
||||
@@ -63,6 +54,15 @@ const performSetup = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
if (program.defaults) {
|
||||
await SettingsService.init();
|
||||
|
||||
console.log('Settings created.');
|
||||
console.log('\nTalk is now installed!');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// Create the base settings model.
|
||||
let settings = new SettingModel();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user