Skip to content

Commit

Permalink
Use async/await in allowed meta
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 28, 2019
1 parent 72f6894 commit b99e4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions allowed-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
*
* @example
* const { ALLOWED_META } = require('@logux/server')
* function outMap (action, meta) {
* async function outMap (action, meta) {
* const filtered = { }
* for (const i in meta) {
* if (ALLOWED_META.includes(i)) {
* filtered[i] = meta[i]
* }
* }
* return Promise.resolve([action, filtered])
* return [action, filtered]
* }
*/
const ALLOWED_META = [
Expand Down

0 comments on commit b99e4be

Please sign in to comment.