Skip to content

Commit

Permalink
update download dsareport linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Oct 31, 2023
1 parent 27091a0 commit 1609bd1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/src/core/server/services/dsaReports/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { Response } from "express";

import { createDateFormatter } from "coral-common/common/lib/date";
import { MongoContext } from "coral-server/data/context";
import { retrieveComment } from "coral-server/models/comment";
import { DSAReport } from "coral-server/models/dsaReport";
import { Tenant } from "coral-server/models/tenant";
import { retrieveUser } from "coral-server/models/user";
import { retrieveComment } from "coral-server/models/comment";

export async function sendReportDownload(
res: Response,
Expand Down Expand Up @@ -109,8 +109,7 @@ export async function sendReportDownload(
csv.write(["User", "Update type", "Update info", "Date"]);

if (report.history) {
for (let i = 0; i < report.history.length; i++) {
const reportHistoryItem = report.history[i];
for (const reportHistoryItem of report.history) {
const reportCommentAuthor = await retrieveUser(
mongo,
tenant.id,
Expand Down

0 comments on commit 1609bd1

Please sign in to comment.