Skip to content

Commit 1a4c3c9

Browse files
committed
Tweak Promise.
1 parent bf33bcf commit 1a4c3c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: rest-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const filterFields = async function(req, user) {
2020
const filteredUser = {}
2121
for (const field of fieldKeys) {
2222
// If the field is a function then we expect it to return
23-
// a promise which we will immediately resolve.
23+
// a Promise which we will immediately resolve.
2424
if (typeof user[field] === 'function') {
2525
filteredUser[field] = await user[field]()
2626
} else {

0 commit comments

Comments
 (0)