From 46a95b41763ec91e821e63609bc54539f3aa6a5d Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Mon, 18 Nov 2024 15:20:15 +0100 Subject: [PATCH] Fixed the activity field mapping --- changelog/unreleased/fix-activity-mapping.md | 5 +++++ services/activitylog/pkg/service/response.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/fix-activity-mapping.md diff --git a/changelog/unreleased/fix-activity-mapping.md b/changelog/unreleased/fix-activity-mapping.md new file mode 100644 index 00000000000..9a40f7448fd --- /dev/null +++ b/changelog/unreleased/fix-activity-mapping.md @@ -0,0 +1,5 @@ +Bugfix: Fix the activity field mapping + +Fixed the activity field mapping +https://github.com/owncloud/ocis/pull/10593 +https://github.com/owncloud/ocis/issues/10228 diff --git a/services/activitylog/pkg/service/response.go b/services/activitylog/pkg/service/response.go index 288928d0583..b6e27bc3735 100644 --- a/services/activitylog/pkg/service/response.go +++ b/services/activitylog/pkg/service/response.go @@ -331,7 +331,7 @@ func getFolderName(ctx context.Context, gwc gateway.GatewayAPIClient, ref *provi func mapField(val string) string { switch val { - case "TYPE_PERMISSIONS", "permission": + case "TYPE_PERMISSIONS", "permission", "permissions": return StrPermission case "TYPE_PASSWORD", "password": return StrPassword