File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,20 +46,21 @@ import RON.Types (
4646import RON.UUID (pattern Zero )
4747import qualified RON.UUID as UUID
4848
49- import FF.Types (Note )
49+ import FF.Types (Note , Tag )
5050
5151upgradeDatabase :: (MonadStorage m ) => m ()
5252upgradeDatabase = do
5353 collections <- getCollections
54- for_ collections $ \ case
54+ for_ collections \ case
5555 " note" -> upgradeNoteCollection
56+ " tag" -> pure ()
5657 collection ->
5758 throwError $ Error (" unsupported type " <> show collection) []
5859
5960upgradeNoteCollection :: (MonadStorage m ) => m ()
6061upgradeNoteCollection = do
6162 docs <- getDocuments @ _ @ Note
62- for_ docs $ \ docid -> do
63+ for_ docs \ docid -> do
6364 docid' <- upgradeDocId docid
6465 modify docid' $ errorContext (" docid' = " <> show docid') do
6566 ObjectRef noteId <- ask
@@ -94,7 +95,7 @@ convertLwwToSet uuid =
9495 doConvert chunk = do
9596 LwwRep lwwRep <- stateFromWireChunk chunk
9697 opMap <-
97- for (Map. assocs lwwRep) $ \ (field, Op {payload}) -> do
98+ for (Map. assocs lwwRep) \ (field, Op {payload}) -> do
9899 opId <- getEventUuid
99100 pure
100101 ( opId
You can’t perform that action at this time.
0 commit comments