feat(bisaya-course): update German course creation script to support default owner retrieval
All checks were successful
Deploy to production / deploy (push) Successful in 3m12s

- Modified the create-german-for-bisaya-course.js script to allow optional ownerHashedId parameter.
- Implemented a new function to find a default owner ('system' or 'admin') if no ownerHashedId is provided.
- Updated documentation to reflect the change in usage for the script.
This commit is contained in:
Torsten Schulz (local)
2026-03-31 11:42:23 +02:00
parent 0d625f1727
commit 01293b0102
2 changed files with 18 additions and 8 deletions

View File

@@ -463,10 +463,12 @@ Die Phasen 1 bis 5 sind jetzt als technische Struktur angelegt:
### Neuer Kurs von Grund auf
```bash
node backend/scripts/create-german-for-bisaya-course.js <ownerHashedId>
node backend/scripts/create-german-for-bisaya-course.js [ownerHashedId]
node backend/scripts/create-german-for-bisaya-course-content.js
```
Ohne `ownerHashedId` nutzt das Skript automatisch zuerst `system`, sonst `admin` als Kursbesitzer.
### Bestehenden Kurs stufenweise erweitern
```bash