-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update packages, update queries in API. Tons of bug fixes and hopefully resolves client headers not being sent. * Update api.ts Include a debug log to check the body of requests being sent in. * Update case statement due to missing breaks. De-duplicate match check codes and move them up to the api. Adjust onplayerdeath to take care of any issues with sql pains. * Include default case to throw 400. * Find a better way for concurrent match restores. Update to implement round_end. Update demos to properly upload to folder. Formatting. Update map stats on round end as well. * Remove unused import in backupapi Fixed demoapi to rename the demo to zip as we are zipping the file, just not renaming the extension. Update veto picks in maplflow service to choose the correct maps from the in-game veto pool. Move `updatePlayerStats` to the Utils class as it's used in seriesflow and mapflow services. Update seriesflowservice to update the stats a final time to ensure data correctness at the end of a map. * Update map flow to catch an edge case where player stats do not exist yet.
- Loading branch information
1 parent
7686954
commit fff92cd
Showing
12 changed files
with
442 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
var dbm; | ||
var type; | ||
var seed; | ||
var async = require("async"); | ||
|
||
/** | ||
* We receive the dbmigrate dependency from dbmigrate initially. | ||
* This enables us to not have to rely on NODE_PATH. | ||
*/ | ||
exports.setup = function (options, seedLink) { | ||
dbm = options.dbmigrate; | ||
type = dbm.dataType; | ||
seed = seedLink; | ||
}; | ||
|
||
exports.up = function (db, callback) { | ||
return db.runSql( | ||
"ALTER TABLE `map_stats` ADD COLUMN round_restored tinyint(1) DEFAULT 0 AFTER end_time;" | ||
); | ||
}; | ||
|
||
exports.down = function (db, callback) { | ||
return db.removeColumn("map_stats", "round_restored"); | ||
}; | ||
exports._meta = { | ||
version: 24 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
var dbm; | ||
var type; | ||
var seed; | ||
var async = require("async"); | ||
|
||
/** | ||
* We receive the dbmigrate dependency from dbmigrate initially. | ||
* This enables us to not have to rely on NODE_PATH. | ||
*/ | ||
exports.setup = function (options, seedLink) { | ||
dbm = options.dbmigrate; | ||
type = dbm.dataType; | ||
seed = seedLink; | ||
}; | ||
|
||
exports.up = function (db, callback) { | ||
return db.runSql( | ||
"ALTER TABLE `map_stats` ADD COLUMN round_restored tinyint(1) DEFAULT 0 AFTER end_time;" | ||
); | ||
}; | ||
|
||
exports.down = function (db, callback) { | ||
return db.removeColumn("map_stats", "round_restored"); | ||
}; | ||
exports._meta = { | ||
version: 24 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use strict"; | ||
|
||
var dbm; | ||
var type; | ||
var seed; | ||
var async = require("async"); | ||
|
||
/** | ||
* We receive the dbmigrate dependency from dbmigrate initially. | ||
* This enables us to not have to rely on NODE_PATH. | ||
*/ | ||
exports.setup = function (options, seedLink) { | ||
dbm = options.dbmigrate; | ||
type = dbm.dataType; | ||
seed = seedLink; | ||
}; | ||
|
||
exports.up = function (db, callback) { | ||
return db.runSql( | ||
"ALTER TABLE `map_stats` ADD COLUMN round_restored tinyint(1) DEFAULT 0 AFTER end_time;" | ||
); | ||
}; | ||
|
||
exports.down = function (db, callback) { | ||
return db.removeColumn("map_stats", "round_restored"); | ||
}; | ||
exports._meta = { | ||
version: 24 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.