diff --git a/AiServer/Configure.AppHost.cs b/AiServer/Configure.AppHost.cs index 5f86fdb..7678bdf 100644 --- a/AiServer/Configure.AppHost.cs +++ b/AiServer/Configure.AppHost.cs @@ -7,6 +7,7 @@ using ServiceStack.Data; using ServiceStack.IO; using ServiceStack.Jobs; +using ServiceStack.NativeTypes; using ServiceStack.OrmLite; [assembly: HostingStartup(typeof(AiServer.AppHost))] @@ -150,7 +151,12 @@ public override void Configure() MaxTokens = 50 }; - #if DEBUG && !FALSE + ConfigurePlugin(feature => + { + feature.MetadataTypesConfig.DefaultNamespaces.Add(typeof(BackgroundJobBase).Namespace); + }); + + #if DEBUG && FALSE Metadata.ForceInclude = [ typeof(AdminQueryApiKeys), typeof(AdminCreateApiKey),