diff options
author | bobzel <zzzman@gmail.com> | 2024-08-13 10:44:53 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-13 10:44:53 -0400 |
commit | ef79ab121c881d3e6a2982ce2e01da40294af656 (patch) | |
tree | c4e792dca58b1c2e303fb7b00d0cbbeadff894c9 /src/server/websocket.ts | |
parent | 5c7964173d80752200727d8340825210c2704265 (diff) |
from last
Diffstat (limited to 'src/server/websocket.ts')
-rw-r--r-- | src/server/websocket.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/websocket.ts b/src/server/websocket.ts index 4a127f099..905dbcf57 100644 --- a/src/server/websocket.ts +++ b/src/server/websocket.ts @@ -11,8 +11,6 @@ import { DocumentsCollection } from './IDatabase'; import { Diff, GestureContent, MessageStore, MobileDocumentUploadContent, MobileInkOverlayContent, Transferable, Types, UpdateMobileInkOverlayPositionContent } from './Message'; import { Search } from './Search'; import { resolvedPorts, socketMap, timeMap, userOperations } from './SocketData'; -import { GoogleCredentialsLoader } from './apis/google/CredentialsLoader'; -import YoutubeApi from './apis/youtube/youtubeApiSample'; import { initializeGuest } from './authentication/DashUserModel'; import { Database } from './database'; @@ -77,7 +75,7 @@ export namespace WebSocket { Database.Instance.update(newValue.id, newValue, () => socket.broadcast.emit(MessageStore.SetField.Message, newValue)); // broadcast set value to all other clients if (newValue.type === Types.Text) { // if the newValue has sring type, then it's suitable for searching -- pass it to SOLR - Search.updateDocument({ id: newValue.id, data: { set: (newValue as any).data } }); + Search.updateDocument({ id: newValue.id, data: { set: newValue.data } }); } } |