diff --git a/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift b/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift index 08f604de7a..29687e390c 100644 --- a/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift +++ b/AmplifyPlugins/DataStore/Sources/AWSDataStorePlugin/Storage/CascadeDeleteOperation.swift @@ -161,7 +161,7 @@ public class CascadeDeleteOperation: AsynchronousOperation { } let modelIds = queriedModels.map { $0.identifier(schema: self.modelSchema).stringValue } - logMessage("[CascadeDelete.1] Deleting \(modelSchema.name) with identifiers: \(modelIds)") + logMessage("[CascadeDelete.1] Deleting \(self.modelSchema.name) with identifiers: \(modelIds)") associatedModels = await self.recurseQueryAssociatedModels(modelSchema: self.modelSchema, ids: modelIds) @@ -260,7 +260,7 @@ public class CascadeDeleteOperation: AsynchronousOperation { switch deleteResult { case .success: - logMessage("[CascadeDelete.3] Local cascade delete of \(modelSchema.name) successful!") + logMessage("[CascadeDelete.3] Local cascade delete of \(self.modelSchema.name) successful!") return .success(QueryAndDeleteResult(deletedModels: models, associatedModels: associatedModels)) case .failure(let error): @@ -447,7 +447,7 @@ public class CascadeDeleteOperation: AsynchronousOperation { syncEngine: RemoteSyncEngineBehavior, dataStoreError: DataStoreError?, completion: @escaping DataStoreCallback) { - logMessage("[CascadeDelete.4] Begin syncing \(models.count) \(modelSchema.name) model for deletion") + logMessage("[CascadeDelete.4] Begin syncing \(models.count) \(self.modelSchema.name) model for deletion") var graphQLFilterJSON: String? if let predicate = predicate { do {