core/Teacher format
This commit is contained in:
1 parent
57454962f1
commit
4fc424b145
1 file changed
+2
-2
+2
-2
@@ -1,6 +1,6 @@
|
||||
const Data = require('./Data')
|
||||
const Image = require('./Image')
|
||||
const {find, findOne} = require('../lib/store')
|
||||
const { find, findOne } = require('../lib/store')
|
||||
|
||||
const store = () => Data.getStore(Teacher)
|
||||
|
||||
@@ -12,7 +12,7 @@ class Teacher {
|
||||
}
|
||||
|
||||
static async findById(id) {
|
||||
const data = await findOne(store(), {id})
|
||||
const data = await findOne(store(), { id })
|
||||
if (!data) return null
|
||||
|
||||
return processProfile(data)
|
||||
|
||||
Reference in new issue
Block a user