This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"folders": [
|
||||||
|
{
|
||||||
|
"path": "./"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "./danak-admin"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {}
|
||||||
|
}
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"folders": [
|
|
||||||
{
|
|
||||||
"path": "../../../.."
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "../../../../../danak-admin"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"settings": {}
|
|
||||||
}
|
|
||||||
@@ -172,7 +172,11 @@ export class UserRepository extends Repository<User> {
|
|||||||
.orWhere("user.userName ILIKE :search", { search: `%${queryDto.q}%` });
|
.orWhere("user.userName ILIKE :search", { search: `%${queryDto.q}%` });
|
||||||
}
|
}
|
||||||
|
|
||||||
return await queryBuilder.skip(skip).take(limit).getManyAndCount();
|
return await queryBuilder
|
||||||
|
.orderBy("user.createdAt", "DESC")
|
||||||
|
.skip(skip)
|
||||||
|
.take(limit)
|
||||||
|
.getManyAndCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
//************* */
|
//************* */
|
||||||
|
|||||||
Reference in New Issue
Block a user