mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-17 03:05:13 +00:00
add subspace controller
This commit is contained in:
@ -97,7 +97,7 @@ export function TypeORMCustomModel(repository: Repository<any>) {
|
||||
|
||||
// Use the where clause directly, without wrapping it under 'where'
|
||||
const whereClause = buildTypeORMWhereClause({ where });
|
||||
console.log('Where clause after building:', whereClause);
|
||||
console.log('Final where clause:', whereClause);
|
||||
|
||||
// Ensure the whereClause is passed directly to findAndCount
|
||||
const [data, count] = await repository.findAndCount({
|
||||
@ -112,7 +112,7 @@ export function TypeORMCustomModel(repository: Repository<any>) {
|
||||
const paginationResponseDto = getPaginationResponseDto(count, page, size);
|
||||
const baseResponseDto: BaseResponseDto = {
|
||||
data,
|
||||
message: getResponseMessage(modelName, { where: whereClause }),
|
||||
message: getResponseMessage(modelName, { where }),
|
||||
};
|
||||
|
||||
return { baseResponseDto, paginationResponseDto };
|
||||
|
Reference in New Issue
Block a user