Fix : attempt to fix Rampage
This commit is contained in:
@@ -2,6 +2,7 @@ SESSION_SECRET=dev
|
||||
|
||||
CLIENT_ENDPOINT=http://localhost:3000
|
||||
API_ENDPOINT=http://localhost:8765
|
||||
API_PREFIX=
|
||||
DISCORD_CLIENTID=
|
||||
DISCORD_CLIENTSECRET=
|
||||
|
||||
|
||||
+2
-2
@@ -7,10 +7,10 @@ services:
|
||||
MONGO_INITDB_ROOT_PASSWORD: example
|
||||
ports:
|
||||
- 27017:27017
|
||||
# entrypoint: bash -c "chown 999:999 /opt/keyfile/mongodb-keyfile && chmod 400 /opt/keyfile/mongodb-keyfile && exec docker-entrypoint.sh $$@"
|
||||
# entrypoint: bash -c "chown 999:999 /opt/keyfile/mongodb-keyfile && chmod 400 /opt/keyfile/mongodb-keyfile && exec docker-entrypoint.sh $$@"
|
||||
command: mongod --replSet rs0 --keyFile /opt/keyfile/mongodb-keyfile
|
||||
volumes:
|
||||
- ./:/opt/keyfile/
|
||||
- ./mongodb-keyfile:/opt/keyfile/mongodb-keyfile
|
||||
- mongo:/data/db
|
||||
|
||||
volumes:
|
||||
|
||||
@@ -274,7 +274,7 @@ export class TurnService {
|
||||
if (
|
||||
token.effect != CardEffects.DRAW_AND_DISCARD ||
|
||||
(token.effect == CardEffects.DRAW_AND_DISCARD &&
|
||||
token.times >= game.currentTurn.drawAndDiscardCurrentAmount)
|
||||
token.times <= game.currentTurn.drawAndDiscardCurrentAmount)
|
||||
) {
|
||||
const index = game.currentTurn.tokens.findIndex((t) =>
|
||||
t._id.equals(token._id),
|
||||
|
||||
Reference in New Issue
Block a user