Skip to content

Commit 3db28ab

Browse files
committed
feat: adjust docs and remove test userid
1 parent 2dfedd5 commit 3db28ab

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bin/importProfileFromJSON.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
1723
const 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) {

0 commit comments

Comments
 (0)