mirror of
				https://github.com/TheAnachronism/docspell.git
				synced 2025-10-31 17:50:11 +00:00 
			
		
		
		
	Increment share access on verify
This commit is contained in:
		| @@ -194,7 +194,9 @@ object OShare { | ||||
|             val shareKey = | ||||
|               share.password.map(pw => key ++ pw.asByteVector).getOrElse(key) | ||||
|  | ||||
|             val token = ShareToken.create(id, shareKey) | ||||
|             val token = ShareToken | ||||
|               .create(id, shareKey) | ||||
|               .flatTap(_ => store.transact(RShare.incAccess(share.id))) | ||||
|             pwCheck match { | ||||
|               case Some(true)  => token.map(t => VerifyResult.success(t, share.name)) | ||||
|               case None        => token.map(t => VerifyResult.success(t, share.name)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user