Fix : attempt to fix Rampage

This commit is contained in:
2024-07-31 10:19:51 +02:00
parent 73efadbaed
commit 540a34f211
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -2,6 +2,7 @@ SESSION_SECRET=dev
CLIENT_ENDPOINT=http://localhost:3000 CLIENT_ENDPOINT=http://localhost:3000
API_ENDPOINT=http://localhost:8765 API_ENDPOINT=http://localhost:8765
API_PREFIX=
DISCORD_CLIENTID= DISCORD_CLIENTID=
DISCORD_CLIENTSECRET= DISCORD_CLIENTSECRET=
+2 -2
View File
@@ -7,10 +7,10 @@ services:
MONGO_INITDB_ROOT_PASSWORD: example MONGO_INITDB_ROOT_PASSWORD: example
ports: ports:
- 27017:27017 - 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 command: mongod --replSet rs0 --keyFile /opt/keyfile/mongodb-keyfile
volumes: volumes:
- ./:/opt/keyfile/ - ./mongodb-keyfile:/opt/keyfile/mongodb-keyfile
- mongo:/data/db - mongo:/data/db
volumes: volumes:
+1 -1
View File
@@ -274,7 +274,7 @@ export class TurnService {
if ( if (
token.effect != CardEffects.DRAW_AND_DISCARD || token.effect != CardEffects.DRAW_AND_DISCARD ||
(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) => const index = game.currentTurn.tokens.findIndex((t) =>
t._id.equals(token._id), t._id.equals(token._id),