@candlerip/shared3 0.0.146 → 0.0.147
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/backend/database/index.d.ts +1 -0
- package/src/backend/database/index.js +1 -0
- package/src/backend/database/model/candle/get-candle-db-model.d.ts +2 -0
- package/src/backend/database/model/candle/get-candle-db-model.js +3 -0
- package/src/backend/database/model/candle/index.d.ts +1 -1
- package/src/backend/database/model/candle/index.js +1 -1
- package/src/backend/database/model/index.d.ts +3 -0
- package/src/backend/database/model/index.js +3 -0
- package/src/backend/database/mutation/candle/get-candles/index.js +2 -2
- package/src/backend/database/model/candle/candle-db-model.d.ts +0 -2
- package/src/backend/database/model/candle/candle-db-model.js +0 -3
package/package.json
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './candle-db-model.js';
|
1
|
+
export * from './get-candle-db-model.js';
|
2
2
|
export * from './candle-db-schema.js';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './candle-db-model.js';
|
1
|
+
export * from './get-candle-db-model.js';
|
2
2
|
export * from './candle-db-schema.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Types } from 'mongoose';
|
2
2
|
import { customErrorWorker } from '@candlerip/shared3';
|
3
3
|
import { CANDLE_PERSON_AGGREGATE } from '../../../aggregate/index.js';
|
4
|
-
import {
|
4
|
+
import { getCandleDbModel } from '../../../model/index.js';
|
5
5
|
export const getCandles = async (props) => {
|
6
6
|
const { filterSort, withPerson } = props;
|
7
7
|
const { composeCustomError } = customErrorWorker(props);
|
@@ -78,7 +78,7 @@ export const getCandles = async (props) => {
|
|
78
78
|
];
|
79
79
|
let data;
|
80
80
|
try {
|
81
|
-
data = await
|
81
|
+
data = await getCandleDbModel().aggregate(facetAggregates);
|
82
82
|
}
|
83
83
|
catch (err) {
|
84
84
|
return {
|