Skip to content

Commit

Permalink
typo: mistake with async function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamikadze4GAME committed Apr 1, 2021
1 parent 4906ff2 commit f3cd105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -129,7 +129,7 @@ There are 3 options to implement the `up` and `down` functions of your migration

Always make sure the implementation matches the function signature:
* `function up(db, client) { /* */ }` should return `Promise`
* `function async up(db, client) { /* */ }` should contain `await` keyword(s) and return `Promise`
* `async function up(db, client) { /* */ }` should contain `await` keyword(s) and return `Promise`
* `function up(db, client, next) { /* */ }` should callback `next`

#### Example 1: Return a Promise
Expand Down

0 comments on commit f3cd105

Please sign in to comment.