Skip to content

Commit 9afe72f

Browse files
committed
fix linting issues
1 parent f728f01 commit 9afe72f

File tree

3 files changed

+21
-178
lines changed

3 files changed

+21
-178
lines changed

src/api/functions/general.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export function pollUntilNoError<T>(
22
fn: () => Promise<T>,
33
timeout: number,
4-
interval: number = 1000
4+
interval: number = 1000,
55
): Promise<T> {
66
const start = Date.now();
77

src/api/functions/membership.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ import {
66
} from "@aws-sdk/client-dynamodb";
77
import { marshall } from "@aws-sdk/util-dynamodb";
88
import { genericConfig } from "common/config.js";
9-
import { addToTenant, isUserInGroup, modifyGroup, resolveEmailToOid } from "./entraId.js";
9+
import {
10+
addToTenant,
11+
isUserInGroup,
12+
modifyGroup,
13+
resolveEmailToOid,
14+
} from "./entraId.js";
1015
import { EntraGroupError } from "common/errors/index.js";
1116
import { EntraGroupActions } from "common/types/iam.js";
1217
import { pollUntilNoError } from "./general.js";
@@ -139,7 +144,11 @@ export async function setPaidMembership({
139144
await addToTenant(entraToken, email);
140145
// Poll every 4 seconds for up to 30 seconds to see if the email was added to the tenant.
141146
// If this still errors, SQS will retry, and if that still errors we'll find it in the DLQ
142-
await pollUntilNoError(() => resolveEmailToOid(entraToken, email), 30000, 4000);
147+
await pollUntilNoError(
148+
() => resolveEmailToOid(entraToken, email),
149+
30000,
150+
4000,
151+
);
143152
await modifyGroup(
144153
entraToken,
145154
email,

0 commit comments

Comments
 (0)