added controller

This commit is contained in:
hannathkadher
2024-10-31 10:14:59 +04:00
parent f1c07360cb
commit f28fa627ed
5 changed files with 23 additions and 31 deletions

View File

@ -6,7 +6,6 @@ export function buildTypeORMWhereClause({ where }) {
// Remove extra nesting if `where` is wrapped within an additional `where` property
const condition = where.where ? where.where : where;
console.log(condition);
const convertToNestedObject = (condition: any): any => {
const result = {};
for (const [key, value] of Object.entries(condition)) {