mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Fix styling
This commit is contained in:
parent
29482689f4
commit
f92267d0bf
|
|
@ -87,6 +87,8 @@ export function getXRankSeasonId(id) {
|
|||
/**
|
||||
* Calculate cache expiry timestamp with 5-minute buffer.
|
||||
* @param {number} expiresIn - Seconds until expiry
|
||||
* @param data
|
||||
* @param path
|
||||
* @returns {number} Timestamp to expire the cache (5 minutes early)
|
||||
*/
|
||||
export function jsonpathQuery(data, path) {
|
||||
|
|
@ -96,7 +98,7 @@ export function jsonpathQuery(data, path) {
|
|||
export function jsonpathApply(data, path, fn) {
|
||||
JSONPath({ path, json: data, resultType: 'all', callback: (result) => {
|
||||
result.parent[result.parentProperty] = fn(result.value);
|
||||
}});
|
||||
} });
|
||||
}
|
||||
|
||||
export function calculateCacheExpiry(expiresIn) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user