mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 18:43:46 +03:00
dm-hook: fix migration
This commit is contained in:
parent
35874233b0
commit
93335fc1ea
@ -71,15 +71,16 @@
|
||||
++ graph
|
||||
%+ roll dms
|
||||
|= [rid=resource =graph:store]
|
||||
^- graph:store
|
||||
=/ =ship (counterparty rid)
|
||||
=| =post:store
|
||||
=: author.post our.bowl
|
||||
index.post [ship ~]
|
||||
time-sent.post now.bowl
|
||||
==
|
||||
=. graph
|
||||
(update-indices ~[ship] graph)
|
||||
(put:orm:store graph `@`ship [%& post] %graph graph)
|
||||
=/ dm=graph:store
|
||||
(update-indices ~[ship] (get-graph-mop:gra rid))
|
||||
(put:orm:store graph `@`ship [%& post] %graph dm)
|
||||
--
|
||||
::
|
||||
++ on-save !>(state)
|
||||
|
Loading…
Reference in New Issue
Block a user