Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samouzegar10 committed Aug 2, 2024
1 parent d4f9c0c commit 6d2f9d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions triton-server/src/api/freezeman/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type {
Dataset,
DatasetFile,
FMSList,
Metric,
Project,
Readset,
} from "../../types/freezeman"
Expand Down
5 changes: 4 additions & 1 deletion triton-server/src/notifications/notification-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import cron from "node-cron"
import { TritonDataset } from "../types/api"
import { getFreezeManAuthenticatedAPI } from "@api/freezeman/api"
import { sendNotificationEmail } from "./emails"
import { formatDateAndTime } from "./utils"

export const start = () => {
console.info("Notification service started to run.")
Expand All @@ -13,7 +14,9 @@ export const start = () => {
const freezemanApi = await getFreezeManAuthenticatedAPI()

const datasetsResponse =
await freezemanApi.Dataset.listByReleasedUpdates()
await freezemanApi.Dataset.listByReleasedUpdates(
formatDateAndTime(),
)

releasedDatasets = datasetsResponse.data.results.map((dataset) => {
return {
Expand Down
1 change: 1 addition & 0 deletions triton-server/src/types/freezeman/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
DatasetID,
DerivedSampleID,
FMSList,
Metric,
Project,
ProjectID,
Readset,
Expand Down

0 comments on commit 6d2f9d9

Please sign in to comment.