chore(server): call SyncAllowedExtensions on startup
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user