diff --git a/VERSION b/VERSION index 0b69c00..9e29e10 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.14 +0.3.15 diff --git a/source_clean/VERSION b/source_clean/VERSION index 0b69c00..9e29e10 100644 --- a/source_clean/VERSION +++ b/source_clean/VERSION @@ -1 +1 @@ -0.3.14 +0.3.15 diff --git a/source_clean/src/cloud/credential.service.ts b/source_clean/src/cloud/credential.service.ts index 339d2ce..5f2b71d 100644 --- a/source_clean/src/cloud/credential.service.ts +++ b/source_clean/src/cloud/credential.service.ts @@ -43,7 +43,7 @@ function extractCookieUid(cookie: string): string { export function getCloudConfigs(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs ORDER BY id ASC` @@ -55,7 +55,7 @@ export function getCloudConfigs(): CloudConfig[] { export function getAvailableClouds(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE is_active = 1 ORDER BY id ASC` @@ -68,7 +68,7 @@ export function getAvailableClouds(): CloudConfig[] { export function getCloudConfigByType(cloudType: string): CloudConfig | undefined { const db = getDb(); const cfg = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs WHERE cloud_type = ? AND is_active = 1 @@ -81,7 +81,7 @@ export function getCloudConfigByType(cloudType: string): CloudConfig | undefined export function getCloudConfigById(id: number): CloudConfig | undefined { const db = getDb(); const cfg = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at, verification_status FROM cloud_configs WHERE id = ?` @@ -94,7 +94,7 @@ export function getCloudConfigById(id: number): CloudConfig | undefined { export function getActiveCloudConfigs(): CloudConfig[] { const db = getDb(); const rows = db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE is_active = 1 @@ -162,7 +162,7 @@ export function saveCloudConfig(data: { const savedId = data.id || (db.prepare('SELECT last_insert_rowid() as id').get() as any).id; return db.prepare( - `SELECT id, cloud_type, cookie, nickname, is_active, cookie_uid, storage_used, storage_total, + `SELECT id, cloud_type, cookie, nickname, is_active, cloud_type_uid, cookie_uid, promotion_account, storage_used, storage_total, checkin_status, last_checkin_at, checkin_message, consecutive_failures, last_used_at, total_saves, created_at, updated_at FROM cloud_configs WHERE id = ?`