Skip to content

Commit

Permalink
fix: remove mock values
Browse files Browse the repository at this point in the history
  • Loading branch information
leMedi committed Jun 1, 2024
1 parent 11b3d60 commit 1eb0373
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/jobs/src/jobs/recap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ triggerDev.defineJob({
console.log("MAKE_RECAPE payload", payload);
console.log("MAKE_RECAPE ctx", ctx);

// const contextId = Number(ctx.source!.id);
const contextId = 2;
const contextId = Number(ctx.source!.id);

const context = await db.query.contexts.findFirst({
where: and(
Expand All @@ -120,8 +119,7 @@ triggerDev.defineJob({
throw new Error("Context not found");
}

// const cutoffDate = subHours(new Date(), Number(context.recapTimeSpan));
const cutoffDate = subDays(new Date(), 1);
const cutoffDate = subHours(new Date(), Number(context.recapTimeSpan));
const cuteOfTimestamp = cutoffDate.getTime() / 1000;

io.logger.debug("cuteOfTimestamp", {
Expand Down

0 comments on commit 1eb0373

Please sign in to comment.