Skip to content

Commit 7dfe16d

Browse files
committed
✨ tweak: update platform source type
1 parent 57c39e3 commit 7dfe16d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/types/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface MessageEvent extends UnthreadWebhookEvent {
5454

5555
// Platform source types - indicates which platform initiated the event
5656
// Can be 'dashboard', 'unknown', 'buffered', or the actual target platform value from environment variable
57-
export type PlatformSource = string | 'buffered';
57+
export type PlatformSource = string;
5858

5959
// Union type for all webhook events
6060
export type WebhookEvent = UrlVerificationEvent | ConversationEvent | MessageEvent;
@@ -137,7 +137,7 @@ export interface FileAttachmentBufferedEvent {
137137
eventData: UnthreadWebhookEvent;
138138
correlationKey: string;
139139
bufferedAt: number;
140-
timeoutId: NodeJS.Timeout;
140+
timeoutId: NodeJS.Timeout | null;
141141
}
142142

143143
export interface FileAttachmentBufferedEvents {

src/utils/fileAttachmentCorrelation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class FileAttachmentCorrelationUtil {
224224
eventData: event,
225225
correlationKey,
226226
bufferedAt: Date.now(),
227-
timeoutId: null as any // Will use shared timeout
227+
timeoutId: null // Will use shared timeout
228228
};
229229

230230
existing.events.push(bufferedEvent);
@@ -253,7 +253,7 @@ export class FileAttachmentCorrelationUtil {
253253
eventData: event,
254254
correlationKey,
255255
bufferedAt: Date.now(),
256-
timeoutId: null as any // Will use shared timeout
256+
timeoutId: null // Will use shared timeout
257257
};
258258

259259
// Create timeout for fallback processing

0 commit comments

Comments
 (0)