Update validator registration assembly in DI setup
Changed validator registration to use the assembly containing InsertObjectProcedureValidator instead of AuthScopedValidator, ensuring the correct set of validators are included in the dependency injection container.
This commit is contained in:
@@ -29,7 +29,7 @@ public static class DependencyInjection
|
||||
opt.RegisterDefaultRepository<TRecDbContext>();
|
||||
});
|
||||
|
||||
services.AddValidatorsFromAssembly(typeof(AuthScopedValidator).Assembly);
|
||||
services.AddValidatorsFromAssembly(typeof(InsertObjectProcedureValidator).Assembly);
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user