From 54965d2b8a1d4d51e9e1f1bb56098bf7866df79c Mon Sep 17 00:00:00 2001 From: readme-bot Date: Tue, 1 Aug 2023 17:25:11 +0800 Subject: [PATCH] fix cloud sync sql --- src/middlelayers/cloudsync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlelayers/cloudsync.ts b/src/middlelayers/cloudsync.ts index 401b5bd..cfe852a 100644 --- a/src/middlelayers/cloudsync.ts +++ b/src/middlelayers/cloudsync.ts @@ -316,7 +316,7 @@ async function removeAssetsInCloud(assets: AssetModel[]): Promise { // return updated how many records async function writeAssetsToDB(d: Database, assets: AssetModel[]): Promise { - const insertValuesStr = assets.map(() => `(?, ?, ?, ?, ?, ?)`).join(", ") + const insertValuesStr = assets.map(() => `(?, ?, ?, ?, ?, ?, ?)`).join(", ") await d.execute(`INSERT INTO ${ASSETS_TABLE_NAME} (uuid, createdAt, symbol, amount, value, price, wallet) VALUES ${insertValuesStr}`, _(assets).map((asset) => [ asset.uuid,