Merge pull request #4236 from specklesystems/alessandro/web-2803-downscale-workspace-subscription

Alessandro/web 2803 downscale workspace subscription
This commit is contained in:
Alessandro Magionami
2025-03-26 09:14:41 +01:00
committed by GitHub
13 changed files with 565 additions and 177 deletions
@@ -195,6 +195,8 @@ export const createTestWorkspace = async (
}
if (addSubscription) {
const aMonthFromNow = new Date()
aMonthFromNow.setMonth(new Date().getMonth() + 1)
await upsertSubscription({
workspaceSubscription: {
workspaceId: newWorkspace.id,
@@ -207,7 +209,8 @@ export const createTestWorkspace = async (
customerId: cryptoRandomString({ length: 10 }),
cancelAt: null,
status: 'active',
products: []
products: [],
currentPeriodEnd: aMonthFromNow
}
}
})