creator, creation date on deck

This commit is contained in:
magdo
2025-10-22 22:03:50 +02:00
parent 9673d564a0
commit 38a2aeb58a
9 changed files with 267 additions and 1 deletions
@@ -255,7 +255,7 @@ export class DeckRepository implements IDeckRepository {
const [decks, totalCount] = await this.repo.findAndCount({
where: { state: Not(State.SOFT_DELETE) },
relations: ['organization'],
relations: ['organization', 'user'],
order: { creationdate: 'DESC' },
skip,
take
@@ -270,6 +270,7 @@ export class DeckRepository implements IDeckRepository {
// Regular user complex filtering
const queryBuilder = this.repo.createQueryBuilder('deck')
.leftJoinAndSelect('deck.organization', 'org')
.leftJoinAndSelect('deck.user', 'user')
.where('deck.state != :deletedState', { deletedState: State.SOFT_DELETE });
queryBuilder.andWhere('(' +