summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-12-16 08:23:13 +0100
committerRory& <root@rory.gay>2025-12-16 08:23:13 +0100
commite25e0587de45f9c4385f268fc02d1444a7e21098 (patch)
tree466d7d9599a549222064e3d109e946fa23c3b1c9
parentExpire old sessions, update last seen on gateway heartbeat (diff)
downloadserver-ts-e25e0587de45f9c4385f268fc02d1444a7e21098.tar.xz
Fix bad imports
-rw-r--r--src/api/routes/applications/detectable.ts2
-rw-r--r--src/api/routes/games/detectable.ts2
-rw-r--r--src/api/util/handlers/Instance.ts2
-rw-r--r--src/gateway/opcodes/Heartbeat.ts2
-rw-r--r--src/schemas/uncategorised/GuildCreateSchema.ts2
-rw-r--r--src/util/connections/Connection.ts2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/api/routes/applications/detectable.ts b/src/api/routes/applications/detectable.ts

index cea0e075..d36d17b7 100644 --- a/src/api/routes/applications/detectable.ts +++ b/src/api/routes/applications/detectable.ts
@@ -18,7 +18,7 @@ import { route } from "@spacebar/api"; import { Request, Response, Router } from "express"; -import { ApplicationDetectableResponse } from "@spacebar/schemas*"; +import { ApplicationDetectableResponse } from "@spacebar/schemas"; const router: Router = Router({ mergeParams: true }); const cache = { diff --git a/src/api/routes/games/detectable.ts b/src/api/routes/games/detectable.ts
index d5183b92..9e10bd58 100644 --- a/src/api/routes/games/detectable.ts +++ b/src/api/routes/games/detectable.ts
@@ -18,7 +18,7 @@ import { route } from "@spacebar/api"; import { Request, Response, Router } from "express"; -import { ApplicationDetectableResponse } from "@spacebar/schemas*"; +import { ApplicationDetectableResponse } from "@spacebar/schemas"; const router: Router = Router({ mergeParams: true }); const cache = { diff --git a/src/api/util/handlers/Instance.ts b/src/api/util/handlers/Instance.ts
index e018f876..f0046269 100644 --- a/src/api/util/handlers/Instance.ts +++ b/src/api/util/handlers/Instance.ts
@@ -43,7 +43,7 @@ export async function initInstance() { for await (const session of await Session.createQueryBuilder("session").where("last_seen = '1970/01/01'").select().stream()) { // session object has all fields prefixed with `session_`... thanks typeorm if (TimeSpan.fromDates((session.session_created_at as Date).getTime(), new Date().getTime()).totalHours > 1) { - console.log(`[API/Instance.ts] Deleting temporary session ${session.session_session_id} created at ${session.session_created_at}`); + console.log(`[API/Instance.ts] Deleting unused session ${session.session_session_id} created at ${session.session_created_at}`); await Session.delete({ session_id: session.session_session_id }); } } diff --git a/src/gateway/opcodes/Heartbeat.ts b/src/gateway/opcodes/Heartbeat.ts
index 47e9be52..57dfc115 100644 --- a/src/gateway/opcodes/Heartbeat.ts +++ b/src/gateway/opcodes/Heartbeat.ts
@@ -19,7 +19,7 @@ import { OPCODES, Payload, WebSocket } from "@spacebar/gateway"; import { setHeartbeat } from "../util/Heartbeat"; import { Send } from "../util/Send"; -import { Session } from "@spacebar/util*"; +import { Session } from "@spacebar/util"; import { FindOptionsWhere } from "typeorm"; interface QoSData { diff --git a/src/schemas/uncategorised/GuildCreateSchema.ts b/src/schemas/uncategorised/GuildCreateSchema.ts
index a9790fa8..f91623d5 100644 --- a/src/schemas/uncategorised/GuildCreateSchema.ts +++ b/src/schemas/uncategorised/GuildCreateSchema.ts
@@ -16,7 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { ChannelModifySchema } from "@spacebar/schemas*"; +import { ChannelModifySchema } from "@spacebar/schemas"; export interface GuildCreateSchema { /** diff --git a/src/util/connections/Connection.ts b/src/util/connections/Connection.ts
index 32ef6351..50c9824a 100644 --- a/src/util/connections/Connection.ts +++ b/src/util/connections/Connection.ts
@@ -18,7 +18,7 @@ import crypto from "crypto"; import { ConnectedAccount } from "../entities"; -import { ConnectedAccountSchema, ConnectionCallbackSchema } from "@spacebar/schemas*"; +import { ConnectedAccountSchema, ConnectionCallbackSchema } from "@spacebar/schemas"; import { Config, DiscordApiErrors } from "../util"; /**