some work on the license manager
This commit is contained in:
@@ -113,9 +113,9 @@ export default {
|
||||
* @param licenseId - The ID of the license to validate
|
||||
* @returns Promise<{ is_valid: boolean, is_signature_valid: boolean, is_expired: boolean } | null>
|
||||
*/
|
||||
async validateLicense(licenseId: number): Promise<{ is_valid: boolean, is_signature_valid: boolean, is_expired: boolean } | null> {
|
||||
async validateLicense(license: License): Promise<{ isValid: boolean, isSignatureValid: boolean, isExpired: boolean } | null> {
|
||||
try {
|
||||
const response = await axios.post('/api/licenses/validate', { license_id: licenseId });
|
||||
const response = await axios.post('/api/licenses/validate', { license });
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
toast.error('Fehler beim Validieren der Lizenz', { description: (error as AxiosError).message });
|
||||
|
||||
Reference in New Issue
Block a user