🔒️ Check license status in validation response

This commit is contained in:
Luke Vella 2025-06-01 11:01:13 +01:00
parent b9cbb61afc
commit e631da2ddf
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -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,