mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-05 23:12:42 +00:00
non-collection methods fix (#1738)
Signed-off-by: budaeva <irina.budaeva@xored.com>
This commit is contained in:
parent
1891cc03a2
commit
3019d1e790
@ -35,9 +35,9 @@
|
||||
() => {},
|
||||
(newStatus: Status) => {
|
||||
if (status && newStatus) {
|
||||
client.update(status, { ...newStatus })
|
||||
client.updateDoc(contact.class.Status, status.space, status._id, { ...newStatus })
|
||||
} else if (status && !newStatus) {
|
||||
client.remove(status)
|
||||
client.removeDoc(contact.class.Status, status.space, status._id)
|
||||
} else {
|
||||
client.createDoc(contact.class.Status, space, {
|
||||
attachedTo: employeeId,
|
||||
|
Loading…
Reference in New Issue
Block a user