Skip to content

Commit 95b7f01

Browse files
committed
add transactions formutations
1 parent 8e492cd commit 95b7f01

File tree

5 files changed

+337
-323
lines changed

5 files changed

+337
-323
lines changed

svc/api/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ api.use('/players/:account_id{/:info}', async (req, res, next) => {
1616
}
1717
let filterCols: (keyof ParsedPlayerMatch)[] = [];
1818
const filter = new Map<string, (string | number)[]>();
19-
const queryCopy = {...req.query};
19+
const queryCopy = { ...req.query };
2020
if (req.query.significant === '0') {
2121
delete queryCopy.significant;
2222
} else {

svc/util/buildMatch.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,7 @@ export async function buildMatch(
241241
await addPlayerBenchmarks(matchResult);
242242

243243
// Save in cache
244-
if (
245-
matchResult &&
246-
config.ENABLE_MATCH_CACHE
247-
) {
244+
if (matchResult && config.ENABLE_MATCH_CACHE) {
248245
await redis.setex(
249246
key,
250247
config.MATCH_CACHE_SECONDS,

0 commit comments

Comments
 (0)