File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,13 @@ import { randomUUID } from 'node:crypto';
1212/**
1313 * Import profile from JSON to user by id
1414 *
15- * npx ts-node bin/importProfileFromJSON.ts --path ~/Downloads/testuser.json -u testuser
15+ * Single file usage:
16+ *
17+ * npx ts-node bin/importProfileFromJSON.ts --path ~/Downloads/testuser.json
18+ *
19+ * Directory usage:
20+ *
21+ * npx ts-node bin/importProfileFromJSON.ts --path ~/Downloads/profiles --limit 100 --offset 0 --import import_run_test
1622 */
1723const main = async ( ) => {
1824 let con : DataSource | null = null ;
@@ -92,7 +98,7 @@ const main = async () => {
9298 await importUserExperienceFromJSON ( {
9399 con : con . manager ,
94100 dataJson : dataJSON ,
95- userId : 'testuser' ,
101+ userId,
96102 importId : params . uid ,
97103 } ) ;
98104 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments