From fde03538e0445063b23970fb6288f36afe9b392f Mon Sep 17 00:00:00 2001 From: Ske Date: Sat, 1 Feb 2020 22:17:13 +0100 Subject: [PATCH] Fix API token handling --- PluralKit.API/Modules.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PluralKit.API/Modules.cs b/PluralKit.API/Modules.cs index 4577f5a4..b844dba4 100644 --- a/PluralKit.API/Modules.cs +++ b/PluralKit.API/Modules.cs @@ -6,7 +6,8 @@ namespace PluralKit.API { protected override void Load(ContainerBuilder builder) { - builder.RegisterType().AsSelf(); + // Lifetime scope so the service, RequiresSystem, and handler itself all get the same value + builder.RegisterType().AsSelf().InstancePerLifetimeScope(); } } } \ No newline at end of file