mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Activity order unqiue in elastic (#4291)
This commit is contained in:
parent
b782769647
commit
e6e53e3231
@ -35,7 +35,7 @@
|
||||
let messages: ChatMessage[] = []
|
||||
|
||||
let activityOrderNewestFirst = JSON.parse(localStorage.getItem('activity-newest-first') ?? 'false')
|
||||
|
||||
$: localStorage.setItem('activity-newest-first', JSON.stringify(activityOrderNewestFirst))
|
||||
$: query.query(
|
||||
chunter.class.ChatMessage,
|
||||
{ attachedTo: objectId },
|
||||
|
@ -305,7 +305,7 @@ function updateDoc2Elastic (
|
||||
doc[docIdAttr] = typeof doc[docIdAttr] === 'string' ? [doc[docIdAttr]] : [...(doc[docIdAttr] ?? [])]
|
||||
if (vv !== '') {
|
||||
if (typeof vv !== 'object') {
|
||||
doc[docIdAttr].push(vv)
|
||||
doc[docIdAttr] = Array.from(new Set([...doc[docIdAttr], vv]))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user