mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-07-21 02:17:15 +02:00
Add switch for enable/disable room
This commit is contained in:
parent
ddefe682fa
commit
d89a85dfb4
17 changed files with 554 additions and 8 deletions
|
@ -7,7 +7,6 @@ import (
|
|||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"math/big"
|
||||
"strings"
|
||||
"time"
|
||||
|
@ -19,6 +18,7 @@ import (
|
|||
model2 "github.com/Unkn0wnCat/matrix-veles/internal/db/model"
|
||||
jwt "github.com/golang-jwt/jwt/v4"
|
||||
"github.com/spf13/viper"
|
||||
"go.mongodb.org/mongo-driver/bson"
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"go.mongodb.org/mongo-driver/mongo"
|
||||
"go.mongodb.org/mongo-driver/mongo/options"
|
||||
|
@ -477,6 +477,10 @@ func (r *mutationResolver) ReconfigureRoom(ctx context.Context, input model.Room
|
|||
rConfig.Debug = *input.Debug
|
||||
}
|
||||
|
||||
if input.Deactivate != nil {
|
||||
rConfig.Deactivate = *input.Deactivate
|
||||
}
|
||||
|
||||
if input.HashChecker != nil {
|
||||
if input.HashChecker.HashCheckMode != nil {
|
||||
newMode := uint8(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue