File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -74,20 +74,14 @@ class Repo {
74
74
//
75
75
// Will return true if it does and false if it does not.
76
76
if ( a_key && a_key !== "repo/" ) {
77
- if ( a_key . startsWith ( "repo/" ) ) {
78
- this . #repo_id = a_key ;
79
- this . #repo_key = a_key . slice ( "repo/" . length ) ;
80
- } else {
81
- this . #repo_id = "repo/" + a_key ;
82
- this . #repo_key = a_key ;
83
- }
84
-
85
77
// Use new repository operations to find the repo
86
- const findResult = RepositoryOps . find ( this . #repo_id ) ;
78
+ const findResult = RepositoryOps . find ( a_key ) ;
87
79
88
80
if ( findResult . ok ) {
89
81
this . #exists = true ;
90
82
this . #repository = findResult . value ;
83
+ this . #repo_id = findResult . value . data . _id ;
84
+ this . #repo_key = findResult . value . data . _key ;
91
85
} else {
92
86
this . #exists = false ;
93
87
this . #error =
You can’t perform that action at this time.
0 commit comments