Skip to content

Commit

Permalink
fix(server): fix extra billing for ddb when app has stopped (#1884)
Browse files Browse the repository at this point in the history
  • Loading branch information
0fatal committed Mar 4, 2024
1 parent 46a0cd4 commit 3113289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/src/billing/billing-creation-task.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ export class BillingCreationTaskService {
replicas: bundle.resource.dedicatedDatabase?.replicas || 0,
}

if (dto.cpu === 0 && dto.memory === 0) {
dto.dedicatedDatabase.cpu = 0
dto.dedicatedDatabase.memory = 0
}

return dto
}
}

0 comments on commit 3113289

Please sign in to comment.