pangea-server 1.0.47 → 1.0.48

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.
@@ -84,7 +84,6 @@ class Db {
84
84
  };
85
85
  }
86
86
  const deletedAtWhere = paranoid === 'deleted' ? { deletedAt: { [_1.Ops.not]: null } } : {};
87
- console.log(getFinalAttributes(attributes));
88
87
  return {
89
88
  attributes: getFinalAttributes(attributes),
90
89
  ...getIncludeAndWhere(model, include, { ...where, ...searchWhere, ...deletedAtWhere }),
@@ -191,20 +190,22 @@ exports.Db = Db;
191
190
  function getFinalAttributes(attributes) {
192
191
  if (!attributes)
193
192
  return;
194
- return attributes.map((attribute) => {
195
- console.log(attribute);
193
+ const attt = attributes.map((attribute) => {
194
+ console.log('attribute: ', attribute);
196
195
  if (typeof attribute === 'string')
197
196
  return [(0, sequelize_1.col)((0, pangea_helpers_1.camelToSnake)(attribute)), attribute];
198
- console.log('[alias, column]');
197
+ console.log('--- [alias, column] --- ');
199
198
  const [alias, column] = Object.entries(attribute)[0];
200
199
  console.log(alias, ': ', column);
201
200
  if (typeof column === 'string')
202
201
  return [(0, sequelize_1.col)((0, pangea_helpers_1.camelToSnake)(column)), alias];
203
- console.log('[op, field]');
202
+ console.log('--- [op, field] --- ');
204
203
  const [op, field] = column;
205
204
  console.log(op, ': ', field);
206
205
  return [(0, sequelize_1.fn)(op, (0, sequelize_1.col)(field)), alias];
207
206
  });
207
+ console.log('attt: ', attt);
208
+ return attt;
208
209
  }
209
210
  function convertWhereKeys(obj) {
210
211
  if (Array.isArray(obj)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "1.0.47",
4
+ "version": "1.0.48",
5
5
  "files": [
6
6
  "dist"
7
7
  ],