Skip to content

Commit 0d975e9

Browse files
committed
await
1 parent c05df0e commit 0d975e9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/@aws-cdk/toolkit-lib/lib/api/notices/notices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class Notices {
155155
* @throws on failure to refresh the data source
156156
*/
157157
public async refresh(options: NoticesRefreshOptions = {}) {
158-
this.ioHelper.notify({
158+
await this.ioHelper.notify({
159159
message: `notices refresh starting, ${JSON.stringify(options)}`,
160160
time: new Date(Date.now()),
161161
level: 'info',

packages/@aws-cdk/toolkit-lib/lib/api/notices/web-data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class WebsiteNoticeDataSource implements NoticeDataSource {
5757

5858
async fetch(): Promise<Notice[]> {
5959
if (!this.skipNetworkCache) {
60-
this.ioHelper.notify({
60+
await this.ioHelper.notify({
6161
message: `website data source fetch starting, ${JSON.stringify(this.agent)}`,
6262
time: new Date(Date.now()),
6363
level: 'info',

packages/@aws-cdk/toolkit-lib/lib/util/network-detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class NetworkDetector {
2222
public static async hasConnectivity(agent?: https.Agent, ioHelper?: IoHelper): Promise<boolean> {
2323
const cachedData = await this.load();
2424
const expiration = cachedData.expiration ?? 0;
25-
ioHelper?.notify({
25+
await ioHelper?.notify({
2626
message: `hasconnectivity, ${JSON.stringify(cachedData)}`,
2727
time: new Date(Date.now()),
2828
level: 'info',

0 commit comments

Comments
 (0)