Force settings content check on user creation Closes #3641
| @@ -4,7 +4,7 @@ import storage from 'node-persist'; | ||
| 4 | 4 | import express from 'express'; |
| 5 | 5 | import lodash from 'lodash'; |
| 6 | 6 | import { jsonParser } from '../express-common.js'; |
| 7 | 7 | import { checkForNewContent, CONTENT_TYPES } from './content-manager.js'; |
| 8 | 8 | import { |
| 9 | 9 | KEY_PREFIX, |
| 10 | 10 | toKey, |
| @@ -195,7 +195,7 @@ router.post('/create', requireAdminMiddleware, jsonParser, async (request, respo | ||
| 195 | 195 | console.info('Creating data directories for', newUser.handle); |
| 196 | 196 | await ensurePublicDirectoriesExist(); |
| 197 | 197 | const directories = getUserDirectories(newUser.handle); |
| 198 | 198 | await checkForNewContent([directories], [CONTENT_TYPES.SETTINGS]); |
| 199 | 199 | return response.json({ handle: newUser.handle }); |
| 200 | 200 | } catch (error) { |
| 201 | 201 | console.error('User create failed:', error); |