fix: updated from 9.3.3 to 15
This commit is contained in:
@@ -31,7 +31,7 @@ async function updateRankCache() {
|
||||
);
|
||||
|
||||
rankCache.clear();
|
||||
users.forEach((row: any) => {
|
||||
users.forEach((row: unknown) => {
|
||||
rankCache.set(row.driver_guid.toString(), {
|
||||
rank: row.rank_position,
|
||||
rating: row.user_rank
|
||||
@@ -112,7 +112,7 @@ export async function GET(request: Request) {
|
||||
const heartbeat = setInterval(() => {
|
||||
try {
|
||||
controller.enqueue(encoder.encode(`: heartbeat\n\n`));
|
||||
} catch (error) {
|
||||
} catch {
|
||||
clearInterval(heartbeat);
|
||||
}
|
||||
}, 30000);
|
||||
@@ -124,7 +124,7 @@ export async function GET(request: Request) {
|
||||
clearInterval(heartbeat);
|
||||
try {
|
||||
controller.close();
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// Controller already closed
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user