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,28 +134,6 @@ class Local extends Config {
134134 return this.get("collections");
135135 }
136136
137- getBuckets() {
138- if (!this.has("buckets")) {
139- return [];
140- }
141- return this.get("buckets");
142- }
143-
144- getBucket($id) {
145- if (!this.has("buckets")) {
146- return {};
147- }
148-
149- let buckets = this.get("buckets");
150- for (let i = 0; i < buckets.length; i++) {
151- if (buckets[i]['$id'] == $id) {
152- return buckets[i];
153- }
154- }
155-
156- return {};
157- }
158-
159137 getCollection($id) {
160138 if (!this.has("collection")) {
161139 return {};
@@ -188,6 +166,28 @@ class Local extends Config {
188166 this.set("collections", collections);
189167 }
190168
169+ getBuckets() {
170+ if (!this.has("buckets")) {
171+ return [];
172+ }
173+ return this.get("buckets");
174+ }
175+
176+ getBucket($id) {
177+ if (!this.has("buckets")) {
178+ return {};
179+ }
180+
181+ let buckets = this.get("buckets");
182+ for (let i = 0; i < buckets.length; i++) {
183+ if (buckets[i]['$id'] == $id) {
184+ return buckets[i];
185+ }
186+ }
187+
188+ return {};
189+ }
190+
191191 addBucket(props) {
192192 if (!this.has("buckets")) {
193193 this.set("buckets", []);
You can’t perform that action at this time.
0 commit comments