assigment and reports groundwork
This commit is contained in:
1 parent
74f0d0dbed
commit
06973ccfb2
9 files changed
+299
-49
No files matched your search
@@ -2025,6 +2025,16 @@ export class DrizzleDatabase implements IDatabase {
|
||||
return results.map((row) => this.mapTrainerClientAssignment(row));
|
||||
}
|
||||
|
||||
async getAllTrainerClientAssignments(): Promise<TrainerClientAssignment[]> {
|
||||
const results = await this.db
|
||||
.select()
|
||||
.from(trainerClientAssignments)
|
||||
.orderBy(desc(trainerClientAssignments.assignedAt))
|
||||
.all();
|
||||
|
||||
return results.map((row) => this.mapTrainerClientAssignment(row));
|
||||
}
|
||||
|
||||
async getClientTrainerAssignment(
|
||||
clientId: string,
|
||||
): Promise<TrainerClientAssignment | null> {
|
||||
|
||||
Reference in new issue
Block a user