more infos, show minimal progress indicator for export gms user

This commit is contained in:
einhornimmond 2025-04-13 13:57:40 +02:00
parent 9f181a2079
commit b4d65827d5
2 changed files with 5 additions and 1 deletions

View File

@ -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...')

View File

@ -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()