Skip to content

Commit fb21561

Browse files
committed
fix unit testing
1 parent 1ce6bc4 commit fb21561

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/api/functions/entraId.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,6 @@ export async function listGroupIDsByEmail(
516516
): Promise<Array<string>> {
517517
try {
518518
const userOid = await resolveEmailToOid(token, email);
519-
console.log(userOid);
520519
const url = `https://graph.microsoft.com/v1.0/users/${userOid}/memberOf`;
521520
const response = await fetch(url, {
522521
method: "GET",

src/api/routes/linkry.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,14 @@ const linkryRoutes: FastifyPluginAsync = async (fastify, _options) => {
244244
try {
245245
const mode = currentRecord ? "modify" : "create";
246246
request.log.info(`Operating in ${mode} mode.`);
247-
const currentUpdatedAt = currentRecord
248-
? currentRecord["updatedAt"]
249-
: null;
250-
const currentCreatedAt = currentRecord
251-
? currentRecord["createdAt"]
252-
: null;
247+
const currentUpdatedAt =
248+
currentRecord && currentRecord["updatedAt"]
249+
? currentRecord["updatedAt"]
250+
: null;
251+
const currentCreatedAt =
252+
currentRecord && currentRecord["createdAt"]
253+
? currentRecord["createdAt"]
254+
: null;
253255

254256
// Generate new timestamp for all records
255257
const creationTime: Date = new Date();
@@ -403,7 +405,6 @@ const linkryRoutes: FastifyPluginAsync = async (fastify, _options) => {
403405

404406
TransactItems.push(deleteItem);
405407
}
406-
console.log("TRANSACTION", JSON.stringify(TransactItems));
407408
await fastify.dynamoClient.send(
408409
new TransactWriteItemsCommand({ TransactItems }),
409410
);

0 commit comments

Comments
 (0)