mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix: add missing parameters ext method, fix SwitchDelete usage
This commit is contained in:
parent
10dd499835
commit
4e0c56f6cb
4 changed files with 11 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -9,6 +9,7 @@ target/
|
|||
.idea/
|
||||
.run/
|
||||
.vscode/
|
||||
.zed/
|
||||
.mono/
|
||||
tags/
|
||||
.DS_Store
|
||||
|
|
|
|||
|
|
@ -20,6 +20,14 @@ public static class ContextParametersExt
|
|||
);
|
||||
}
|
||||
|
||||
public static async Task<List<PKMember>> ParamResolveMembers(this Context ctx, string param_name)
|
||||
{
|
||||
return await ctx.Parameters.ResolveParameter(
|
||||
ctx, param_name,
|
||||
param => (param as Parameter.MemberRefs)?.members
|
||||
);
|
||||
}
|
||||
|
||||
public static async Task<PKSystem?> ParamResolveSystem(this Context ctx, string param_name)
|
||||
{
|
||||
return await ctx.Parameters.ResolveParameter(
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public class SystemFront
|
|||
{
|
||||
if (ctx.MatchFlag("clear", "c") || ctx.PeekArgument() == "clear")
|
||||
{
|
||||
await new Switch().SwitchDelete(ctx);
|
||||
await new Switch().SwitchDelete(ctx, true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@
|
|||
depends_on.redis.condition = "process_healthy";
|
||||
depends_on.pluralkit-gateway.condition = "process_log_ready";
|
||||
# TODO: add liveness check
|
||||
ready_log_line = "Received Ready";
|
||||
ready_log_line = "Connected! All is good (probably).";
|
||||
availability.restart = "on_failure";
|
||||
availability.max_restarts = 3;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue