mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
more infos, show minimal progress indicator for export gms user
This commit is contained in:
parent
9f181a2079
commit
b4d65827d5
@ -49,6 +49,7 @@ const run = async () => {
|
||||
.getRawMany()
|
||||
logger.debug('userIds:', userIds)
|
||||
|
||||
let alreadyUpdatedUserCount = 0
|
||||
for (const idStr of userIds) {
|
||||
logger.debug('Id:', idStr.id)
|
||||
const user = await DbUser.findOne({
|
||||
@ -78,6 +79,8 @@ const run = async () => {
|
||||
logger.debug('GMS-Publishing not allowed by user settings:', user)
|
||||
}
|
||||
}
|
||||
alreadyUpdatedUserCount++
|
||||
process.stdout.write(`updated user: ${alreadyUpdatedUserCount}/${userIds.length}\r`)
|
||||
}
|
||||
logger.info('##gms## publishing all local users successful...')
|
||||
|
||||
|
||||
@ -281,9 +281,10 @@ export const schema = Joi.object({
|
||||
|
||||
GMS_USER_SEARCH_FRONTEND_ROUTE: Joi.string()
|
||||
.pattern(/^[\w_-]*$/)
|
||||
.allow('')
|
||||
.default('user-search')
|
||||
.description(
|
||||
'gms frontend playground route, user-search for standalone playground, usersearch-playground for old',
|
||||
'gms frontend playground route, user-search for standalone playground, usersearch-playground for old, empty for testing local',
|
||||
),
|
||||
|
||||
GMS_WEBHOOK_SECRET: Joi.string()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user