From 5d96401530025b76007669e7d28a394378a4fbe9 Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Tue, 25 Feb 2020 16:10:13 +0200 Subject: [PATCH] fix: Data store await for meta data --- packages/daf-data-store/src/data-store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/daf-data-store/src/data-store.ts b/packages/daf-data-store/src/data-store.ts index 0ff806f14..ff022ce19 100644 --- a/packages/daf-data-store/src/data-store.ts +++ b/packages/daf-data-store/src/data-store.ts @@ -313,7 +313,7 @@ export class DataStore { .toParams() const searchResult = await this.db.rows(searchQuery.text, searchQuery.values) if (searchResult.length > 0) { - this.updateMetaData(message) + await this.updateMetaData(message) } else { try { const query = sql