Skip to content

Commit 5b102a2

Browse files
chore(logging): fix indexed db adapter was failing browser tests (#3644)
chore: fix indexed db adapter. was failing browser tests
1 parent 1c0d2dc commit 5b102a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/logging_cloudwatch/amplify_logging_cloudwatch/lib/src/queued_item_store/index_db/indexed_db_adapter.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ class IndexedDbAdapter implements QueuedItemStore {
6969
@override
7070
Future<void> addItem(String string, String timestamp) async {
7171
await _databaseOpenEvent;
72-
await _getObjectStore().add(string, timestamp).future;
72+
await _getObjectStore()
73+
.push({'value': string, 'timestamp': timestamp}).future;
7374

7475
_currentTotalByteSize += QueuedItem.getByteSize(string, timestamp);
7576
}

0 commit comments

Comments
 (0)