Browse Source

ensures all groups are ready when all / where / findBy is exected

Kieran Gibb 2 years ago
parent
commit
d0e3b0092f
No known key found for this signature in database
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      index.js

+ 1
- 0
index.js View File

@@ -38,6 +38,7 @@ class GroupStore {
38 38
 
39 39
   async all () {
40 40
     try {
41
+      await this.ready()
41 42
       return uniq(Object.values(this.groups))
42 43
     } catch (err) {
43 44
       debug(err)