Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dtboy1995 authored Mar 13, 2019
1 parent e2e308c commit 820be9e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Account = mongoose.model('Account', new mongoose.Schema({
name: String, balance: Number
}));
```
## simple
#### simple
```javascript
const ACID = require('mongoose-acid');
await ACID.make()
Expand All @@ -30,7 +30,7 @@ await ACID.make()
.exec();
```

## gets the value of the previous operation
#### gets the value of the previous operation
```javascript
const ACID = require('mongoose-acid');
await ACID.make()
Expand All @@ -41,7 +41,7 @@ await ACID.make()
.exec();
```

## error handling
#### error handling
```javascript
const ACID = require('mongoose-acid');
try{
Expand All @@ -57,7 +57,7 @@ try{
}
```

## error handling
#### error handling
```javascript
const ACID = require('mongoose-acid');
await ACID.make()
Expand All @@ -72,7 +72,7 @@ await ACID.make()
.exec();
```

## not when mongoose query
#### not when mongoose query
```javascript
const ACID = require('mongoose-acid');
await ACID.make()
Expand All @@ -85,7 +85,7 @@ await ACID.make()
.exec();
```

## return to the promise operation (like `Model.create` return a Promise, there's no way to inject it)
#### return to the promise operation (like `Model.create` return a Promise, there's no way to inject it)
```javascript
const ACID = require('mongoose-acid');
await ACID.make()
Expand Down

0 comments on commit 820be9e

Please sign in to comment.