refactor(dlq): inline DLQItemDocumentBase into DLQItemDocument

This commit is contained in:
Br0wnHammer committed 2026-03-27 23:23:01 +05:30
1 parent 214fc4899c
commit a895912b99
1 file changed
+2 -5
+2 -5
View File
@@ -1,16 +1,13 @@
import { Schema, model, type Types } from "mongoose";
import { DLQItemTypes, DLQItemStatuses, type DLQItem } from "@/types/dlqItem.js";
type DLQItemDocumentBase = Omit<DLQItem, "id" | "monitorId" | "teamId" | "nextRetryAt" | "createdAt" | "updatedAt"> & {
export interface DLQItemDocument extends Omit<DLQItem, "id" | "monitorId" | "teamId" | "nextRetryAt" | "createdAt" | "updatedAt"> {
_id: Types.ObjectId;
monitorId: Types.ObjectId;
teamId: Types.ObjectId;
nextRetryAt: Date;
createdAt: Date;
updatedAt: Date;
};
export interface DLQItemDocument extends DLQItemDocumentBase {
_id: Types.ObjectId;
}
const DLQItemSchema = new Schema<DLQItemDocument>(