chore: server code formatting
This commit is contained in:
parent
aedabcbdee
commit
68517170e2
234 changed files with 9824 additions and 6195 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const uuid = require('uuid')
|
||||
|
||||
const {APPROVED} = require('../consts')
|
||||
const { APPROVED } = require('../consts')
|
||||
|
||||
const CODE = 'mock-compliance'
|
||||
|
||||
|
|
@ -8,18 +8,19 @@ const createLink = (settings, userId, level) => {
|
|||
return `this is a mock external link, ${userId}, ${level}`
|
||||
}
|
||||
|
||||
const getApplicantStatus = (account, userId) => {
|
||||
const getApplicantStatus = account => {
|
||||
return Promise.resolve({
|
||||
service: CODE,
|
||||
status: {
|
||||
level: account.applicantLevel, answer: APPROVED
|
||||
}
|
||||
level: account.applicantLevel,
|
||||
answer: APPROVED,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
const createApplicant = () => {
|
||||
return Promise.resolve({
|
||||
id: uuid.v4()
|
||||
id: uuid.v4(),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -27,5 +28,5 @@ module.exports = {
|
|||
CODE,
|
||||
createApplicant,
|
||||
getApplicantStatus,
|
||||
createLink
|
||||
createLink,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue