From 25dd73e97a12344ea246fd509a60f14841933ce4 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Date: Fri, 2 Sep 2022 18:47:17 +0300 Subject: [PATCH] fix: transfer download file --- src/models/staging/staging.model.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/models/staging/staging.model.js b/src/models/staging/staging.model.js index c1431d17..c75f416f 100644 --- a/src/models/staging/staging.model.js +++ b/src/models/staging/staging.model.js @@ -42,8 +42,7 @@ class Staging extends Model { static generateOfferFile = async () => { const stagingRecord = await Staging.findOne({ - // where: { isTransfer: true }, - where: { commited: false }, + where: { isTransfer: true }, raw: true, });