feat: new classrooms default to 'reserved' status instead of 'available'
This commit is contained in:
@@ -56,7 +56,7 @@ export class ClassroomsService {
|
||||
|
||||
async restore(id: number) {
|
||||
await this.findOne(id);
|
||||
await this.repo.update(id, { status: 'available' });
|
||||
await this.repo.update(id, { status: 'reserved' });
|
||||
return this.repo.findOne({ where: { id } });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user