Skip to content

Commit bed7799

Browse files
committed
WIP: [ci skip] validating issues are fixed
1 parent 9cc1505 commit bed7799

File tree

6 files changed

+38
-45
lines changed

6 files changed

+38
-45
lines changed

.github/workflows/cms-content-integrity-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020

21-
- uses: actions/setup-node@v6
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v6
2223
with:
23-
node-version: 22.20.0
24+
node-version-file: .nvmrc
2425
cache: yarn
2526

2627
- name: Configure and Build

api/scripts/cms-content-integrity-tests/contextualInfoLinks.ts

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,28 +195,32 @@ export const checkContextualInfoLinksUsage = async (topicArn: string): Promise<b
195195
const Config = getMergedConfig();
196196

197197
const configMatches: ConfigMatch[] = [];
198-
199-
const conextualInfoInstanceMatch = searchConfig(
200-
Config,
201-
{ regex: conextualLinkRegexGlobal },
202-
loadCmsConfig(true),
203-
);
204-
for (const configMatch of conextualInfoInstanceMatch) {
205-
for (const innerMatch of configMatch.matches) {
206-
if (!allContextualInfoFileNames().has(innerMatch.value)) {
207-
configMatches.push(innerMatch);
198+
try {
199+
const conextualInfoInstanceMatch = searchConfig(
200+
Config,
201+
{ regex: conextualLinkRegexGlobal },
202+
loadCmsConfig(true),
203+
);
204+
205+
for (const configMatch of conextualInfoInstanceMatch) {
206+
for (const innerMatch of configMatch.matches) {
207+
if (!allContextualInfoFileNames().has(innerMatch.value)) {
208+
configMatches.push(innerMatch);
209+
}
208210
}
209211
}
210-
}
211212

212-
if (configMatches.length > 0) {
213-
anyErrors = true;
213+
if (configMatches.length > 0) {
214+
anyErrors = true;
214215

215-
for (const configMatch of configMatches) {
216-
const logMessage = `business-ux-content: In the CMS config *"${configMatch.cmsLabelPath.join("/")}"* the contexual link *"${configMatch.value}"* is broken. Please replace it with a valid value`;
217-
console.error(logMessage);
218-
await publishSnsMessage(logMessage, topicArn);
216+
for (const configMatch of configMatches) {
217+
const logMessage = `business-ux-content: In the CMS config *"${configMatch.cmsLabelPath.join("/")}"* the contexual link *"${configMatch.value}"* is broken. Please replace it with a valid value`;
218+
console.error(logMessage);
219+
await publishSnsMessage(logMessage, topicArn);
220+
}
219221
}
222+
} catch (e) {
223+
console.log("e", e);
220224
}
221225
return anyErrors;
222226
};

api/src/libs/awsSns.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PublishCommand, PublishCommandOutput, SNSClient } from "@aws-sdk/client-sns";
1+
import { PublishCommandOutput, SNSClient } from "@aws-sdk/client-sns";
22

33
export const snsClient = new SNSClient({});
44

@@ -20,13 +20,13 @@ export const publishSnsMessage = async (
2020
};
2121

2222
try {
23-
const response = await snsClient.send(
24-
new PublishCommand({
25-
Message: JSON.stringify(formattedMessage),
26-
TopicArn: topicArn,
27-
}),
28-
);
29-
return response;
23+
// const response = await snsClient.send(
24+
// new PublishCommand({
25+
// Message: JSON.stringify(formattedMessage),
26+
// TopicArn: topicArn,
27+
// }),
28+
// );
29+
// return response;
3030
} catch (error) {
3131
console.error(`Error when trying to send AWS SNS message: ${error}`);
3232
}

content/src/fundings/njbac-cannabis-training-academy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebarCardBodyText: New Jersey Business Action Center's (NJBAC) Cannabis
99
and answer sessions every other week to provide non-legal advice and
1010
direction. Instructors and mentors are faculty who are in or have supported
1111
the cannabis industry.
12-
openDate: 03/30/2023
12+
openDate: ""
1313
dueDate: ""
1414
summaryDescriptionMd: >+
1515
The New Jersey Business Action Center's (NJBAC) Cannabis Training Academy
@@ -25,7 +25,7 @@ callToActionLink: https://nj.gov/state/bac/cannabis.shtml
2525
callToActionText: Learn more
2626
fundingType: technical assistance
2727
programFrequency: ongoing
28-
status: opening soon
28+
status: rolling application
2929
programPurpose: In State
3030
agency:
3131
- nj-bac
@@ -38,15 +38,15 @@ preferenceForOpportunityZone: no
3838
county:
3939
- All
4040
sector: []
41-
publishStageArchive: Do Not Publish
41+
publishStageArchive: null
4242
---
4343

4444
## Eligibility
4545

4646
- Individuals who are considering applying for a conditional or annual license
47-
- Must be in the `Impact Zone|impactzonebusiness-cannabis`, `social equity business|socialequitybusiness-cannabis`, `diversely owned | diverselyownedbusiness-cannabis`, veteran, veteran-disabled, LGBTQ+ and/or microbusiness categories
47+
- Must be in the `Impact Zone|impact-zone-business-cannabis` , `social equity business|social-equity-business-cannabis` , `diversely owned|diversely-owned-business-cannabis` , veteran, veteran-disabled, LGBTQ+ and/or microbusiness categories
4848

49-
:::largeCallout{ showHeader="true" headerText="Benefits" calloutType="conditional" }
49+
:::largeCallout{ showHeader="true" headerText="Benefits" calloutType="conditional" amountIconText="" filingTypeIconText="" frequencyIconText="" phoneIconText="" emailIconText="" }
5050

5151
- Assistance filling out application to the New Jersey Cannabis Regulatory Commission, whether it is conditional, annual or conversion
5252
- General training to create and run a sustainable business operation

content/src/roadmaps/add-ons/pierce-ears.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

web/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/types/routes.d.ts";
3+
import "./.next/dev/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)