Skip to content

Commit

Permalink
fix: make async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyguerra committed Nov 13, 2023
1 parent 19b8e17 commit 6f07bf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'node:path'
import { fileURLToPath } from 'node:url'

const __dirname = path.dirname(fileURLToPath(import.meta.url))
export default (robot) => {
export default async (robot) => {
const scriptsPath = path.resolve(__dirname, 'src')
robot.loadFile(scriptsPath, 'RedisBrain.mjs')
await robot.loadFile(scriptsPath, 'RedisBrain.mjs')
}

0 comments on commit 6f07bf2

Please sign in to comment.