mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-24 11:47:24 +02:00
🔒️ Check license status in validation response
This commit is contained in:
parent
b9cbb61afc
commit
e631da2ddf
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ app.post(
|
|||
return c.json({ error: "License not found" }, 404);
|
||||
}
|
||||
|
||||
if (license.status !== "ACTIVE") {
|
||||
return c.json({ error: "License is not active" }, 400);
|
||||
}
|
||||
|
||||
await prisma.licenseValidation.create({
|
||||
data: {
|
||||
licenseId: license.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue