Skip to content

Commit

Permalink
ci: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Dec 28, 2023
1 parent 8d48086 commit 06db8fb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
11 changes: 4 additions & 7 deletions apps/core/src/modules/private/handlers/syncEnrollments.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { createHash } from 'node:crypto';
import {
DisciplinaModel,
type Enrollment,
EnrollmentModel,
} from '@next/models';
import { DisciplinaModel, type Enrollment } from '@next/models';
import { ofetch } from 'ofetch';
import { convertUfabcDisciplinas, generateIdentifier } from '@next/common';
import { updateEnrollmentsQueue } from '@next/queue';
Expand Down Expand Up @@ -71,6 +67,7 @@ export async function syncEnrollments(
);
const enrollments = filteredEnrollments.map((enrollment) => {
const enrollmentIdentifier = generateIdentifier(enrollment);
// @ts-expect-error Ignore
const { id, _id, ...disciplinasWithoutId } =
disciplinasMap.get(enrollmentIdentifier) || {};
const identifiers = {
Expand Down Expand Up @@ -105,8 +102,8 @@ export async function syncEnrollments(
chunks.push(enrollments.slice(i, i + chunkSize));
}

const TW0_MINUTES = 1_000 * 120;
const FOUR_MINUTES = 1_000 * 240;
// const TW0_MINUTES = 1_000 * 120;
// const FOUR_MINUTES = 1_000 * 240;

updateEnrollmentsQueue.add(
'Update:Enrollments',
Expand Down
11 changes: 6 additions & 5 deletions apps/core/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ export default defineConfig({
'@/': new URL('./src/', import.meta.url).pathname,
},
coverage: {
all: true,
thresholds: {
statements: 10,
functions: 10,
lines: 10,
branches: 10,
},
reportOnFailure: true,
statements: 10,
branches: 10,
functions: 10,
lines: 10,
},
},
});
11 changes: 6 additions & 5 deletions apps/queue/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ export default defineConfig({
'@/': new URL('./src/', import.meta.url).pathname,
},
coverage: {
all: true,
thresholds: {
statements: 10,
functions: 10,
lines: 10,
branches: 10,
},
reportOnFailure: true,
statements: 10,
branches: 10,
functions: 10,
lines: 10,
},
},
});

0 comments on commit 06db8fb

Please sign in to comment.