Prevent users from being able to claim the latest card unless you were the one to drop it
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ad505b3ea2
commit
8ccd7c33d4
4 changed files with 11 additions and 13 deletions
|
@ -17,6 +17,10 @@ export default class Claim extends AppBaseEntity {
|
|||
@ManyToOne(() => Inventory, x => x.Claims)
|
||||
Inventory: Inventory;
|
||||
|
||||
public SetInventory(inventory: Inventory) {
|
||||
this.Inventory = inventory;
|
||||
}
|
||||
|
||||
public static async FetchOneByClaimId(claimId: string): Promise<Claim | null> {
|
||||
const repository = AppDataSource.getRepository(Claim);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue