Skip to content

Commit

Permalink
Merge pull request #1426 from bcgov/nats-bug
Browse files Browse the repository at this point in the history
Nats bug
  • Loading branch information
funtigr authored Nov 28, 2023
2 parents c89a736 + a144be4 commit 467bd38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions app/api/private-cloud/decision/[licencePlate]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ export async function POST(req: NextRequest, { params }: { params: Params }) {
request.requestedProject?.secondaryTechnicalLead,
].filter((user): user is User => Boolean(user));

// // Subscribe users to Mautic
// await subscribeUsersToMautic(users, request.requestedProject.cluster, 'Private');
// Subscribe users to Mautic
await subscribeUsersToMautic(users, request.requestedProject.cluster, 'Private');

// // Send emails
// sendRequestApprovalEmails(request);
// Send emails
sendRequestApprovalEmails(request);

return new NextResponse(`Decision request for ${request.licencePlate} succesfully created.`, {
status: 200,
Expand Down
6 changes: 3 additions & 3 deletions nats/privateCloud/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export default function createPrivateCloudNatsMessage(
].map(({ quotaName, quota }) => ({
name: `${licencePlate}-${quotaName}`,
quota: {
cpu: DefaultCpuOptions[quota.cpu],
memory: DefaultMemoryOptions[quota.memory],
storage: DefaultStorageOptions[quota.storage],
cpu: DefaultCpuOptions[quota.cpu].name,
memory: DefaultMemoryOptions[quota.memory].name,
storage: DefaultStorageOptions[quota.storage].name,
snapshot: snapshot.name,
},
quotas: {
Expand Down

0 comments on commit 467bd38

Please sign in to comment.