Skip to content

Commit

Permalink
Merge pull request #398 from contentful/fix/deleted_assets_entries
Browse files Browse the repository at this point in the history
Fix/deleted assets entries
  • Loading branch information
mariuskatcontentful authored Apr 21, 2024
2 parents 89a38c2 + ac333ea commit 530c8f5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTFUL_SDK_VERSION=5.5.9
CONTENTFUL_SDK_VERSION=5.5.10
2 changes: 1 addition & 1 deletion Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTFUL_SDK_VERSION=5.5.9
CONTENTFUL_SDK_VERSION=5.5.10
2 changes: 1 addition & 1 deletion Scripts/.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTFUL_SDK_VERSION=5.5.9
CONTENTFUL_SDK_VERSION=5.5.10
2 changes: 1 addition & 1 deletion Scripts/Config.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CONTENTFUL_SDK_VERSION=5.5.9
CONTENTFUL_SDK_VERSION=5.5.10
4 changes: 2 additions & 2 deletions Sources/Contentful/SyncSpace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ public final class SyncSpace: Decodable {

for deletedAssetId in syncSpace.deletedAssetIds {
assetsMap.removeValue(forKey: deletedAssetId)
deletedAssetIds.append(contentsOf: syncSpace.deletedAssetIds)
deletedAssetIds.append(deletedAssetId)
}

for deletedEntryId in syncSpace.deletedEntryIds {
entriesMap.removeValue(forKey: deletedEntryId)
deletedEntryIds.append(contentsOf: syncSpace.deletedEntryIds)
deletedEntryIds.append(deletedEntryId)
}

syncToken = syncSpace.syncToken
Expand Down

0 comments on commit 530c8f5

Please sign in to comment.