Merge pull request #3141 from bluewave-labs/feat/job-queue-ts

feat/job queue ts
This commit is contained in:
Alexander Holliday authored and GitHub committed 2026-01-16 10:25:40 -08:00
commit 0d7a35367f
21 files changed
+1052 -559

No files matched your search

+3 -4
View File
@@ -11,8 +11,7 @@ import type {
CheckMemoryInfo,
CheckMetadata,
CheckNetworkInterfaceInfo,
CheckTimings,
CheckTimingPhases,
GotTimings,
ILighthouseAudit,
} from "@/types/check.js";
@@ -35,7 +34,7 @@ interface CheckDocument extends CheckDocumentBase {
_id: Types.ObjectId;
}
const timingPhasesSchema = new Schema<CheckTimingPhases>(
const timingPhasesSchema = new Schema<GotTimings["phases"]>(
{
wait: { type: Number, default: 0 },
dns: { type: Number, default: 0 },
@@ -49,7 +48,7 @@ const timingPhasesSchema = new Schema<CheckTimingPhases>(
{ _id: false }
);
const timingsSchema = new Schema<CheckTimings>(
const timingsSchema = new Schema<GotTimings>(
{
start: { type: Number, default: 0 },
socket: { type: Number, default: 0 },