From 332d8ba01d6f06a256504950830424b14e1959bb Mon Sep 17 00:00:00 2001 From: HUAHUAI23 Date: Fri, 12 Apr 2024 06:58:08 +0000 Subject: [PATCH] feat(server) fix error cannot read properties of undefined --- server/src/storage/storage-user-task.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/storage/storage-user-task.service.ts b/server/src/storage/storage-user-task.service.ts index 102391b9e0..bb06f67be7 100644 --- a/server/src/storage/storage-user-task.service.ts +++ b/server/src/storage/storage-user-task.service.ts @@ -95,7 +95,7 @@ export class StorageUserTaskService { } // add storage user to common user group in minio const result = await this.minioService.addUserToGroup(region, accessKey) - if (result.error) { + if (result?.error) { this.logger.error('add storage user to group failed: ', result.error) return }