chore(server): call SyncAllowedExtensions on startup

This commit is contained in:
2026-05-16 19:31:09 -04:00
parent 5caebcfe45
commit 1afc202ba9
+3
View File
@@ -70,6 +70,9 @@ func main() {
// Create library service // Create library service
libraryService := services.NewLibraryService(queries) libraryService := services.NewLibraryService(queries)
// Sync Go AllowedExtensions into DB so API clients see correct extensions
libraryService.SyncAllowedExtensions(context.Background())
// Create worker for background tasks // Create worker for background tasks
worker := services.NewWorker(3, connManager) worker := services.NewWorker(3, connManager)
services.WorkerInstance = worker services.WorkerInstance = worker