Last active
February 15, 2019 08:32
-
-
Save leny/09573e4a6a69f8bdaf3e67e2e0a46d8b to your computer and use it in GitHub Desktop.
JS Bin// source https://jsbin.com/posekok
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import db from "../core/db-manager"; | |
| db.collection("users") | |
| .findAll() | |
| .then((allUsers) => Promise.all( | |
| allUsers.map( user => user.update({badge: new Badge("hellow")}) | |
| ) | |
| ) | |
| ) | |
| .then((result) => {}) | |
| .catch((err) => {}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment