|
|
@@ -200,8 +200,7 @@ export class HomeService {
|
|
|
async getTimeBankActivities(userId?: number, limit: number = 3): Promise<SilverTimeBank[]> {
|
|
|
return await this.timeBankRepo
|
|
|
.createQueryBuilder('timeBank')
|
|
|
- .where('timeBank.status = :status', { status: 1 })
|
|
|
- .orderBy('timeBank.workDate', 'DESC')
|
|
|
+ .orderBy('timeBank.startDate', 'DESC')
|
|
|
.limit(limit)
|
|
|
.getMany();
|
|
|
}
|