fix: preserve dakao result subjects on outbox retry
This commit is contained in:
1 parent
e63fba0286
commit
7b636ee793
3 files changed
+145
-1
No files matched your search
@@ -350,6 +350,10 @@ export interface DakaoOutboxMessage extends MongooseTimestamps {
|
||||
type: string;
|
||||
subject: string;
|
||||
correlationId?: string;
|
||||
resultSubjects?: {
|
||||
succeeded: string;
|
||||
failed: string;
|
||||
};
|
||||
payload: Record<string, unknown>;
|
||||
state: DakaoOutboxMessageState;
|
||||
publishAttempts: number;
|
||||
@@ -960,6 +964,10 @@ export const DakaoOutboxMessageSchema = new Schema<DakaoOutboxMessage>(
|
||||
type: { type: String, required: true },
|
||||
subject: { type: String, required: true },
|
||||
correlationId: { type: String },
|
||||
resultSubjects: {
|
||||
succeeded: { type: String },
|
||||
failed: { type: String },
|
||||
},
|
||||
payload: { type: Schema.Types.Mixed, required: true },
|
||||
state: {
|
||||
type: String,
|
||||
|
||||
Reference in new issue
Block a user