mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-16 18:25:17 +02:00
update billing types
This commit is contained in:
parent
219d4c7901
commit
b49e14fdf8
9 changed files with 37 additions and 26 deletions
|
|
@ -165,6 +165,7 @@ export class RunConversationTurnUseCase implements IRunConversationTurnUseCase {
|
|||
}
|
||||
} finally {
|
||||
// Log billing usage
|
||||
console.log('finally logging billing usage');
|
||||
if (USE_BILLING && billingCustomerId) {
|
||||
await logUsage(billingCustomerId, {
|
||||
items: usageTracker.flush(),
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export class CreateProjectUseCase implements ICreateProjectUseCase {
|
|||
}
|
||||
|
||||
// validate enough credits
|
||||
const result = await authorize(customer._id, {
|
||||
const result = await authorize(customer.id, {
|
||||
type: "create_project",
|
||||
data: {
|
||||
existingProjectCount: count,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue