Formatting.
This commit is contained in:
parent
d5431665e9
commit
9b7cbc9d01
|
@ -98,7 +98,6 @@ exports.deleteGlobalUser = async (ctx, globalId) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.getGlobalUsers = async (ctx, appId = null, globalId = null) => {
|
exports.getGlobalUsers = async (ctx, appId = null, globalId = null) => {
|
||||||
|
|
||||||
const endpoint = globalId
|
const endpoint = globalId
|
||||||
? `/api/admin/users/${globalId}`
|
? `/api/admin/users/${globalId}`
|
||||||
: `/api/admin/users`
|
: `/api/admin/users`
|
||||||
|
|
|
@ -77,7 +77,7 @@ const lengthConstraint = maxLength => value => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const numericalConstraint = (constraint, error) => value => {
|
const numericalConstraint = (constraint, error) => value => {
|
||||||
if (value == null || value === "") {
|
if (value == null || value === "") {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
if (isNaN(value)) {
|
if (isNaN(value)) {
|
||||||
|
|
Loading…
Reference in New Issue