We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7df24c2 commit 35f5efdCopy full SHA for 35f5efd
templates/cli/lib/config.js.twig
@@ -141,6 +141,21 @@ class Local extends Config {
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
157
158
159
getCollection($id) {
160
if (!this.has("collection")) {
161
return {};
0 commit comments