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

this will be fixed later when we redo the socket io rooms with dynamic stuff
This commit is contained in:
2026-06-09 12:07:53 -05:00
parent 8fc3129f7d
commit 8fcb2c66ed
2 changed files with 3 additions and 2 deletions

View File

@@ -104,7 +104,6 @@ export const roomDefinition: Record<RoomId, RoomDefinition> = {
"dockDoorLoading:2": {
seed: async (limit) => {
console.log(limit);
console.log("reseeiding");
try {
const rows = await db
.select()

View File

@@ -30,7 +30,9 @@ export const getRoomMemberCount = (roomId: string): number => {
};
export const preseedRoom = async (roomId: RoomId) => {
if (roomHistory.has(roomId)) {
return roomHistory.get(roomId);
if (!roomId.includes("dock")) {
return roomHistory.get(roomId);
}
}
const roomDef = roomDefinition[roomId] as any;