gql fix :)

gql_cataclysm v0.3.1
noah metz 2023-07-31 18:49:56 -06:00
parent 0cc7174667
commit 6895aa7c8e
1 changed files with 2 additions and 1 deletions

@ -914,8 +914,9 @@ func NewGQLExtContext() *GQLExtContext {
sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"} sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"}
err = Allowed(ctx.Context, ctx.User, sig.Permission(), ctx.Server) err = Allowed(ctx.Context, ctx.User, sig.Permission(), ctx.Server)
if err != nil { if err != nil {
return nil, err return err, nil
} }
err = ctx.Context.Send(ctx.Server.ID, ctx.Server.ID, sig) err = ctx.Context.Send(ctx.Server.ID, ctx.Server.ID, sig)
if err != nil { if err != nil {
return nil, err return nil, err