From 926165cb38c5907d76e5cccfbb164d28a9cfb8ce Mon Sep 17 00:00:00 2001 From: hanlu Date: Wed, 30 Mar 2022 16:34:09 +0800 Subject: [PATCH 1/2] add data sync perm Signed-off-by: hanlu --- api/@ohos.data.distributedDataObject.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index 0a77aa67c6..5b4694f60a 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -52,6 +52,7 @@ declare namespace distributedDataObject { * * @param sessionId The sessionId to be joined, if empty, leave all session * @return Operation result, true is success, false is failed + * @permission ohos.permission.DISTRIBUTED_DATASYNC * @since 8 */ setSessionId(sessionId?: string): boolean; -- Gitee From c9207684fa4275f2b1c8f88d38bba588bedf4e6d Mon Sep 17 00:00:00 2001 From: hanlu Date: Wed, 30 Mar 2022 16:35:36 +0800 Subject: [PATCH 2/2] bugfix Signed-off-by: hanlu --- api/@ohos.data.distributedDataObject.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.data.distributedDataObject.d.ts b/api/@ohos.data.distributedDataObject.d.ts index 5b4694f60a..c788a7b735 100644 --- a/api/@ohos.data.distributedDataObject.d.ts +++ b/api/@ohos.data.distributedDataObject.d.ts @@ -52,7 +52,7 @@ declare namespace distributedDataObject { * * @param sessionId The sessionId to be joined, if empty, leave all session * @return Operation result, true is success, false is failed - * @permission ohos.permission.DISTRIBUTED_DATASYNC + * @permission ohos.permission.DISTRIBUTED_DATASYNC * @since 8 */ setSessionId(sessionId?: string): boolean; -- Gitee