Enforce ordinary auction bidding deadlines online
This commit is contained in:
1 parent
f76c8dfb93
commit
f548039cd8
17 files changed
+1363
-33
No files matched your search
@@ -9,7 +9,7 @@ export function loadRoomContinuation(
|
||||
rooms: Pick<
|
||||
typeof Rooms,
|
||||
'continueRoomAutomatic' | 'continueRoomBots'
|
||||
>,
|
||||
> & Partial<Pick<typeof Rooms, 'continueRoomAuctionClock'>>,
|
||||
) {
|
||||
const exports = {};
|
||||
runInNewContext(
|
||||
@@ -28,7 +28,7 @@ export function loadRoomContinuation(
|
||||
{
|
||||
exports,
|
||||
require: (name: string) => {
|
||||
if (name === './rooms') return rooms;
|
||||
if (name === './rooms') return { continueRoomAuctionClock: async () => false, ...rooms };
|
||||
throw new Error('Unexpected continuation dependency ' + name);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user