mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Fix demo require path
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user