refactor(socketio): changes that if we are in dock room to constant reseed the room
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m49s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 1m49s
this will be fixed later when we redo the socket io rooms with dynamic stuff
This commit is contained in:
@@ -104,7 +104,6 @@ export const roomDefinition: Record<RoomId, RoomDefinition> = {
|
|||||||
"dockDoorLoading:2": {
|
"dockDoorLoading:2": {
|
||||||
seed: async (limit) => {
|
seed: async (limit) => {
|
||||||
console.log(limit);
|
console.log(limit);
|
||||||
console.log("reseeiding");
|
|
||||||
try {
|
try {
|
||||||
const rows = await db
|
const rows = await db
|
||||||
.select()
|
.select()
|
||||||
|
|||||||
@@ -30,7 +30,9 @@ export const getRoomMemberCount = (roomId: string): number => {
|
|||||||
};
|
};
|
||||||
export const preseedRoom = async (roomId: RoomId) => {
|
export const preseedRoom = async (roomId: RoomId) => {
|
||||||
if (roomHistory.has(roomId)) {
|
if (roomHistory.has(roomId)) {
|
||||||
return roomHistory.get(roomId);
|
if (!roomId.includes("dock")) {
|
||||||
|
return roomHistory.get(roomId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const roomDef = roomDefinition[roomId] as any;
|
const roomDef = roomDefinition[roomId] as any;
|
||||||
|
|||||||
Reference in New Issue
Block a user