Skip to content

Commit

Permalink
chore(logging): fix indexed db adapter was failing browser tests (#3644)
Browse files Browse the repository at this point in the history
chore: fix indexed db adapter. was failing browser tests
  • Loading branch information
khatruong2009 authored Aug 29, 2023
1 parent 1c0d2dc commit 5b102a2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ class IndexedDbAdapter implements QueuedItemStore {
@override
Future<void> 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);
}
Expand Down

0 comments on commit 5b102a2

Please sign in to comment.