mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix demo require path
This commit is contained in:
parent
8af22ae878
commit
90494fd75f
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
// This is the code from the README.
|
||||
|
||||
const OError = require('..')
|
||||
|
||||
const demoDatabase = {
|
||||
findUser(id, callback) {
|
||||
process.nextTick(() => {
|
||||
|
@ -36,8 +38,6 @@ sayHi1(43, (err, result) => {
|
|||
}
|
||||
})
|
||||
|
||||
const OError = require('.')
|
||||
|
||||
function sayHi2(userId, callback) {
|
||||
demoDatabase.findUser(userId, (err, user) => {
|
||||
if (err) return callback(OError.tag(err))
|
||||
|
|
Loading…
Reference in a new issue