forked from wangziqi/gongxue-base
fix: release beds/lockers in batchCheckOut
The batchCheckOut method was not releasing assigned beds and lockers after checkout, leaving them orphaned as 'occupied'. Added the same release pattern used in checkOut() — using runner.manager.update() since batchCheckOut operates inside a QueryRunner transaction.
This commit is contained in:
@@ -64,6 +64,9 @@ export class Class {
|
||||
@Column({ name: 'notes', type: 'text', nullable: true })
|
||||
notes: string;
|
||||
|
||||
|
||||
@Column({ name: 'is_archived', default: false })
|
||||
isArchived: boolean;
|
||||
@CreateDateColumn({ name: 'created_at' })
|
||||
createdAt: Date;
|
||||
|
||||
|
||||
@@ -35,6 +35,9 @@ export class User {
|
||||
@Column({ name: 'last_login_at', type: 'datetime', nullable: true })
|
||||
lastLoginAt: Date;
|
||||
|
||||
@Column({ name: 'is_archived', default: false })
|
||||
isArchived: boolean;
|
||||
|
||||
@CreateDateColumn({ name: 'created_at' })
|
||||
createdAt: Date;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user