File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -134,13 +134,6 @@ class Local extends Config {
134
134
return this.get("collections");
135
135
}
136
136
137
- getDatabases() {
138
- if (!this.has("databases")) {
139
- return [];
140
- }
141
- return this.get("databases");
142
- }
143
-
144
137
getCollection($id) {
145
138
if (!this.has("collections")) {
146
139
return {};
@@ -156,21 +149,6 @@ class Local extends Config {
156
149
return {};
157
150
}
158
151
159
- getDatabase($id) {
160
- if (!this.has("databases")) {
161
- return {};
162
- }
163
-
164
- let databases = this.get("databases");
165
- for (let i = 0; i < databases.length; i++) {
166
- if (databases[i]['$id'] == $id) {
167
- return databases[i];
168
- }
169
- }
170
-
171
- return {};
172
- }
173
-
174
152
addCollection(props) {
175
153
if (!this.has("collections")) {
176
154
this.set("collections", []);
@@ -188,6 +166,28 @@ class Local extends Config {
188
166
this.set("collections", collections);
189
167
}
190
168
169
+ getDatabases() {
170
+ if (!this.has("databases")) {
171
+ return [];
172
+ }
173
+ return this.get("databases");
174
+ }
175
+
176
+ getDatabase($id) {
177
+ if (!this.has("databases")) {
178
+ return {};
179
+ }
180
+
181
+ let databases = this.get("databases");
182
+ for (let i = 0; i < databases.length; i++) {
183
+ if (databases[i]['$id'] == $id) {
184
+ return databases[i];
185
+ }
186
+ }
187
+
188
+ return {};
189
+ }
190
+
191
191
addDatabase(props) {
192
192
if (!this.has("databases")) {
193
193
this.set("databases", []);
You can’t perform that action at this time.
0 commit comments