diff --git a/packages/logging_cloudwatch/amplify_logging_cloudwatch/lib/src/queued_item_store/index_db/indexed_db_adapter.dart b/packages/logging_cloudwatch/amplify_logging_cloudwatch/lib/src/queued_item_store/index_db/indexed_db_adapter.dart index a14508d926..19da0f00a1 100644 --- a/packages/logging_cloudwatch/amplify_logging_cloudwatch/lib/src/queued_item_store/index_db/indexed_db_adapter.dart +++ b/packages/logging_cloudwatch/amplify_logging_cloudwatch/lib/src/queued_item_store/index_db/indexed_db_adapter.dart @@ -69,7 +69,8 @@ class IndexedDbAdapter implements QueuedItemStore { @override Future addItem(String string, String timestamp) async { await _databaseOpenEvent; - await _getObjectStore().add(string, timestamp).future; + await _getObjectStore() + .push({'value': string, 'timestamp': timestamp}).future; _currentTotalByteSize += QueuedItem.getByteSize(string, timestamp); }