Fix implicit connect / disconnect

This commit is contained in:
0x1eef 2024-04-26 21:02:40 -03:00
parent 4aa703bf98
commit 6960ad83b5
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ class Twenty::Command::Connect < Twenty::Command
private
def run_command(options)
path = options.path ? File.expand_path(options.path) : Dir.getwd
path = File.realpath(options.path ? options.path : Dir.getwd)
if File.exist?(path)
project = Twenty::Project.create(
name: File.basename(path),

View file

@ -16,7 +16,7 @@ class Twenty::Command::Disconnect < Twenty::Command
private
def run_command(options)
path = options.path ? File.expand_path(options.path) : Dir.getwd
path = File.reapath(options.path ? options.path : Dir.getwd)
Twenty::Project
.where(path:)
.first!