shuttlepro-shared 1.3.6 → 1.3.7

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.
@@ -74,11 +74,6 @@ const findAllWorkspaces = async (filter = {}) => {
74
74
  Object.entries(filter).every(([key, value]) => ws[key] === value)
75
75
  );
76
76
  };
77
- const updateWorkspaceCache = async (id = "") => {
78
- const workspace = await Workspace.findById(id).lean().exec();
79
- await updateCachedWorkspaces();
80
- return workspace;
81
- };
82
77
 
83
78
  const updateWorkspace = async (id, data) => {
84
79
  const updatedWorkspace = await Workspace.findByIdAndUpdate(id, data, {
@@ -143,5 +138,4 @@ module.exports = {
143
138
  updateOneWorkspace,
144
139
  updateManyWorkspaces,
145
140
  deleteWorkspace,
146
- updateWorkspaceCache,
147
141
  };
package/models/Order.js CHANGED
@@ -136,6 +136,14 @@ const OrderSchema = new Schema(
136
136
  paymentDate: { type: String, default: "" },
137
137
  paymentDetails: {},
138
138
  },
139
+ merged: {
140
+ status: { type: String, default: "open" },
141
+ webOrderNumbers: [],
142
+ orderNumbers: [],
143
+ localOrderIds: [],
144
+ webOrderIds: [],
145
+ details: [],
146
+ },
139
147
  credentials: {},
140
148
  ticketId: { type: String, default: "" },
141
149
  sender: { type: String, default: "" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {