Skip to content

Commit

Permalink
#19 これで複数プロジェクトのチェックアウトに対応した?
Browse files Browse the repository at this point in the history
  • Loading branch information
tkgshn committed May 10, 2024
1 parent 07a95ac commit 8a0293d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/qf/qf.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ export class QfService {
const qfResult = await this.calculateQuadraticFundingAmount(
matchingRoundId,
); //MatchingRoundのデータを渡すと、それぞれのプロジェクトに対する上乗せ金額を計算して返す
const matchedAmount = qfResult.grants[grantId].qfAmount; // 上で計算した「qfRest」の中から、特定のプロジェクトの上乗せ金額だけを取得
// const matchedAmount = qfResult.grants[grantId].qfAmount; // 上で計算した「qfRest」の中から、特定のプロジェクトの上乗せ金額だけを取得
const grantInfo = qfResult.grants[grantId];
const matchedAmount = grantInfo ? grantInfo.qfAmount : 0; // grantInfoがundefinedの場合、0を返す

const existingMatchedFund = await this.prismaService.matchedFund.findUnique(
{
Expand Down

0 comments on commit 8a0293d

Please sign in to comment.