rerobe-js-orm 2.6.94 → 2.6.95
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.
package/lib/models/Order.js
CHANGED
|
@@ -205,6 +205,11 @@ class Order extends Base_1.default {
|
|
|
205
205
|
name: 'documentId',
|
|
206
206
|
type: 'string',
|
|
207
207
|
},
|
|
208
|
+
{
|
|
209
|
+
facet: false,
|
|
210
|
+
name: 'userId',
|
|
211
|
+
type: 'string',
|
|
212
|
+
},
|
|
208
213
|
{
|
|
209
214
|
facet: true,
|
|
210
215
|
name: 'createdAtTimestamp',
|
|
@@ -281,7 +286,7 @@ class Order extends Base_1.default {
|
|
|
281
286
|
type: 'string',
|
|
282
287
|
},
|
|
283
288
|
],
|
|
284
|
-
name: '
|
|
289
|
+
name: 'prod_orders_20220809',
|
|
285
290
|
};
|
|
286
291
|
}
|
|
287
292
|
toObjForTypesense() {
|
|
@@ -289,6 +294,7 @@ class Order extends Base_1.default {
|
|
|
289
294
|
const stagedObj = {
|
|
290
295
|
id: this.utilities.sanitizeString(this.documentId),
|
|
291
296
|
documentId: this.utilities.sanitizeString(this.documentId),
|
|
297
|
+
userId: this.utilities.sanitizeString(this.userId),
|
|
292
298
|
createdAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.createdAtTimestamp),
|
|
293
299
|
updatedAtTimestamp: this.utilities.sanitizeMillisTimeStamp(this.updatedAtTimestamp),
|
|
294
300
|
merchantId: this.utilities.sanitizeString(this.merchantId),
|