mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-07 21:05:58 +00:00
update gcs write logic, fix build cost bug
This commit is contained in:
@@ -147,7 +147,8 @@ export class GameServer {
|
||||
}
|
||||
});
|
||||
try {
|
||||
if (this.turns.length > 100 && this.clients.length > 0) {
|
||||
if (this.turns.length > 350) {
|
||||
console.log(`writing game ${this.id} to gcs`)
|
||||
const bucket = storage.bucket(this.config.gameStorageBucketName());
|
||||
const file = bucket.file(this.id);
|
||||
const game = {
|
||||
|
||||
Reference in New Issue
Block a user