summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-03-16 23:45:23 +0100
committerRory& <root@rory.gay>2026-03-16 23:45:23 +0100
commit8c137a42a25de78ced8e1fdd4ab2b07557488477 (patch)
tree7fa0a845528157954dbb36624d4c6273f9a72410 /src
parentUpdate pion-webrtc moduel (diff)
downloadserver-ts-8c137a42a25de78ced8e1fdd4ab2b07557488477.tar.xz
Clean up schemas some more
Diffstat (limited to 'src')
-rw-r--r--src/schemas/uncategorised/MessageCreateSchema.ts5
-rw-r--r--src/schemas/uncategorised/WebhookExecuteSchema.ts5
-rw-r--r--src/util/entities/Session.ts2
3 files changed, 2 insertions, 10 deletions
diff --git a/src/schemas/uncategorised/MessageCreateSchema.ts b/src/schemas/uncategorised/MessageCreateSchema.ts

index b9c8119e..f1313291 100644 --- a/src/schemas/uncategorised/MessageCreateSchema.ts +++ b/src/schemas/uncategorised/MessageCreateSchema.ts
@@ -57,10 +57,7 @@ export interface MessageCreateSchema { } | null; payload_json?: string; file?: { filename: string }; - /** - TODO: we should create an interface for attachments - TODO: OpenWAAO<-->attachment-style metadata conversion - **/ + // TODO: we should create an interface for attachments attachments?: (MessageCreateAttachment | MessageCreateCloudAttachment)[]; sticker_ids?: string[] | null; // null check: fixes Discord-Go components?: ActionRowComponent[] | null; // null check: fixes Discord-Go diff --git a/src/schemas/uncategorised/WebhookExecuteSchema.ts b/src/schemas/uncategorised/WebhookExecuteSchema.ts
index 2d0fdbd4..147a2d1a 100644 --- a/src/schemas/uncategorised/WebhookExecuteSchema.ts +++ b/src/schemas/uncategorised/WebhookExecuteSchema.ts
@@ -35,10 +35,7 @@ export interface WebhookExecuteSchema { components?: any[]; file?: { filename: string }; payload_json?: string; - /** - TODO: we should create an interface for attachments - TODO: OpenWAAO<-->attachment-style metadata conversion - **/ + // TODO: we should create an interface for attachments attachments?: MessageCreateAttachment[]; flags?: number; thread_name?: string; diff --git a/src/util/entities/Session.ts b/src/util/entities/Session.ts
index e6ada0d9..a5cdeb77 100644 --- a/src/util/entities/Session.ts +++ b/src/util/entities/Session.ts
@@ -24,8 +24,6 @@ import { Activity, ClientStatus, GatewaySession, GatewaySessionClientInfo, Statu import { randomUpperString } from "@spacebar/api"; import { DateBuilder, IpDataClient, TimeSpan } from "../util"; -//TODO we need to remove all sessions on server start because if the server crashes without closing websockets it won't delete them - @Entity({ name: "sessions", })