on master help sign in
Load new sync
commite0625f7f78781c19ee70901a04f0cb3ce2204dc8 authoriko <ilyakooo0@gmail.com> dateTue 9 Aug 2022, 10:24 (4 years ago) parentd9a653a
1 file changed+3−1
backend/Main.purs+3−1
backend/Main.purs+3−1
@@ -142,7 +142,9 @@ main = do
142142 let
143143 sortedCiphers = Array.sortWith (_.date >>> Down) ciphers
144144 send $ Bridge.LoadCiphers $ Bridge.Sub_LoadCiphers_List $ map _.cipher sortedCiphers
145− liftEffect $ Storage.store storage SyncKey sync
145+ api <- getAuthedApi
146+ newSync <- liftPromise $ api.getSync unit
147+ liftEffect $ Storage.store storage SyncKey newSync
146148 Bridge.NeedsReset -> do
147149 WebStorage.clear storage
148150 Elm.send app Bridge.Reset