Skip to content

Commit

Permalink
Merge 6bea338 into 5d18cc8
Browse files Browse the repository at this point in the history
  • Loading branch information
troyharvey committed Nov 15, 2016
2 parents 5d18cc8 + 6bea338 commit 98bee13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ cufflink.create('measurement').then((result) => {
});
```

Cufflink also has a `createSync` feature that doesn't use Promises.

```
let objects = cufflink.createSync('measurement');
```

Testing
-------

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cufflink",
"version": "1.2.1",
"version": "1.2.2",
"description": "A command tool to help generate seed data based on your object schema in your applications",
"main": "src/cufflink.js",
"directories": {
Expand Down
5 changes: 2 additions & 3 deletions src/CreateCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class CreateCommand {
runSync() {
let graph = this.dependencyGraph.run();
let drivers = this.driverLocator.drivers();
let results = [];

graph.forEach((graphElement) => {
let lowerElement = graphElement.toLowerCase();
Expand All @@ -57,10 +56,10 @@ class CreateCommand {
});

this.driversToExecute.forEach((driver) => {
results.push(driver.create());
process.results.push(driver.create());
});

return results;
return process.results;
}
}

Expand Down

0 comments on commit 98bee13

Please sign in to comment.