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

This commit is contained in:
Ethan Lane 2023-09-13 15:06:53 +01:00
parent ad505b3ea2
commit 8ccd7c33d4
4 changed files with 11 additions and 13 deletions

View file

@ -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);