aboutsummaryrefslogtreecommitdiff
path: root/src/server/websocket.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-13 20:19:08 -0400
committerbobzel <zzzman@gmail.com>2020-08-13 20:19:08 -0400
commit4a2f2bd0b94a923e8cde1199bf9abfedd8dcde23 (patch)
treedd9d76110c0fcddece89f808a14a95397294d577 /src/server/websocket.ts
parentab500561d6924d867c828b6e407827b7d6b34278 (diff)
fixed search for type with multipe values. changed search schema
Diffstat (limited to 'src/server/websocket.ts')
-rw-r--r--src/server/websocket.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/websocket.ts b/src/server/websocket.ts
index 18c5ece98..ec351c283 100644
--- a/src/server/websocket.ts
+++ b/src/server/websocket.ts
@@ -203,7 +203,7 @@ export namespace WebSocket {
Database.Instance.update(newValue.id, newValue, () =>
socket.broadcast.emit(MessageStore.SetField.Message, newValue));
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: (newValue as any).data });
+ Search.updateDocument({ id: newValue.id, data: { set: (newValue as any).data } });
}
}