mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-20 13:47:46 +02:00
update
This commit is contained in:
parent
aace622e15
commit
541f349c78
@ -48,15 +48,13 @@ function getDownloadUrl() {
|
|||||||
|
|
||||||
async function getUpdateSummary() {
|
async function getUpdateSummary() {
|
||||||
// Map Java License enum to API types
|
// Map Java License enum to API types
|
||||||
let type = 'community';
|
let type = 'normal';
|
||||||
if (licenseType === 'NORMAL') {
|
if (licenseType === 'PRO') {
|
||||||
type = 'community';
|
|
||||||
} else if (licenseType === 'PRO') {
|
|
||||||
type = 'pro';
|
type = 'pro';
|
||||||
} else if (licenseType === 'ENTERPRISE') {
|
} else if (licenseType === 'ENTERPRISE') {
|
||||||
type = 'enterprise';
|
type = 'enterprise';
|
||||||
}
|
}
|
||||||
const url = `https://supabase.stirling.com/functions/v1/updates?from=${currentVersion}&type=${type}&summary=true`;
|
const url = `https://supabase.stirling.com/functions/v1/updates?from=${currentVersion}&type=${type}&login=${activeSecurity}&summary=true`;
|
||||||
console.log("Fetching update summary from:", url);
|
console.log("Fetching update summary from:", url);
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
@ -84,7 +82,7 @@ async function getFullUpdateInfo() {
|
|||||||
} else if (licenseType === 'ENTERPRISE') {
|
} else if (licenseType === 'ENTERPRISE') {
|
||||||
type = 'enterprise';
|
type = 'enterprise';
|
||||||
}
|
}
|
||||||
const url = `https://supabase.stirling.com/functions/v1/updates?from=${currentVersion}&type=${type}&summary=false`;
|
const url = `https://supabase.stirling.com/functions/v1/updates?from=${currentVersion}&type=${type}&login=${activeSecurity}&summary=false`;
|
||||||
console.log("Fetching full update info from:", url);
|
console.log("Fetching full update info from:", url);
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url);
|
const response = await fetch(url);
|
||||||
|
Loading…
Reference in New Issue
Block a user