From ede54b1762a27ac3b828c5cc0d0ce79fc58745f9 Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Tue, 18 Jul 2023 09:15:32 -0700 Subject: [PATCH] adjusting sql query to avoid error on some devices --- app/mobile/src/context/useStoreContext.hook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mobile/src/context/useStoreContext.hook.js b/app/mobile/src/context/useStoreContext.hook.js index e3c8cfe7..1739b769 100644 --- a/app/mobile/src/context/useStoreContext.hook.js +++ b/app/mobile/src/context/useStoreContext.hook.js @@ -284,7 +284,7 @@ export function useStoreContext() { }, setChannelTopicItem: async (guid, channelId, topic) => { const { topicId, revision, detailRevision, detail } = topic; - await db.current.executeSql(`INSERT OR REPLACE INTO channel_topic_${guid} (channel_id, topic_id, revision, created, detail_revision, blocked, detail, unsealed_detail) values (?, ?, ?, ?, ?, false, ?, null);`, [channelId, topicId, revision, detail?.created, detailRevision, encodeObject(detail)]); + await db.current.executeSql(`INSERT OR REPLACE INTO channel_topic_${guid} (channel_id, topic_id, revision, created, detail_revision, blocked, detail, unsealed_detail) values (?, ?, ?, ?, ?, ?, ?, null);`, [channelId, topicId, revision, detail?.created, detailRevision, false, encodeObject(detail)]); }, setChannelTopicItemUnsealedDetail: async (guid, channelId, topicId, revision, unsealed) => { await db.current.executeSql(`UPDATE channel_topic_${guid} set unsealed_detail=? where detail_revision=? AND channel_id=? AND topic_id=?`, [encodeObject(unsealed), revision, channelId, topicId]);