@grapadigital/shared-schemas 1.0.150 → 1.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -328,7 +328,7 @@ exports.CommissionInfo = CommissionInfo;
|
|
|
328
328
|
let Inbox = class Inbox {
|
|
329
329
|
};
|
|
330
330
|
__decorate([
|
|
331
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
331
|
+
(0, mongoose_1.Prop)({ required: true, unique: true, sparse: true }),
|
|
332
332
|
__metadata("design:type", String)
|
|
333
333
|
], Inbox.prototype, "gmailMessageId", void 0);
|
|
334
334
|
__decorate([
|
package/package.json
CHANGED
|
@@ -156,7 +156,7 @@ export class CommissionInfo {
|
|
|
156
156
|
|
|
157
157
|
@Schema({ _id: false })
|
|
158
158
|
export class Inbox {
|
|
159
|
-
@Prop({ required: true }) gmailMessageId: string;
|
|
159
|
+
@Prop({ required: true, unique: true, sparse: true }) gmailMessageId: string;
|
|
160
160
|
@Prop({ required: true }) gmailThreadId: string;
|
|
161
161
|
@Prop({ required: true }) from: string;
|
|
162
162
|
@Prop({ required: true }) to: string;
|