mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-30 20:29:13 +00:00
Add domain provider ID to database storage
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/e95d8c16-766d-443a-be3e-5abb947e3251.jpg
This commit is contained in:
@@ -138,6 +138,7 @@ export class DatabaseStorage implements IStorage {
|
|||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
organization_id as "organizationId",
|
organization_id as "organizationId",
|
||||||
|
provider_id as "providerId",
|
||||||
is_active as "isActive",
|
is_active as "isActive",
|
||||||
created_at as "createdAt"
|
created_at as "createdAt"
|
||||||
FROM domains
|
FROM domains
|
||||||
@@ -156,7 +157,7 @@ export class DatabaseStorage implements IStorage {
|
|||||||
organizationId: row.organizationId as string,
|
organizationId: row.organizationId as string,
|
||||||
isActive: Boolean(row.isActive),
|
isActive: Boolean(row.isActive),
|
||||||
createdAt: row.createdAt ? new Date(row.createdAt as string) : new Date(),
|
createdAt: row.createdAt ? new Date(row.createdAt as string) : new Date(),
|
||||||
providerId: '', // Default value for expected field
|
providerId: row.providerId as string || '', // Use providerId from the database
|
||||||
lastUpdated: null // Default value for expected field
|
lastUpdated: null // Default value for expected field
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -173,6 +174,7 @@ export class DatabaseStorage implements IStorage {
|
|||||||
id,
|
id,
|
||||||
name,
|
name,
|
||||||
organization_id as "organizationId",
|
organization_id as "organizationId",
|
||||||
|
provider_id as "providerId",
|
||||||
is_active as "isActive",
|
is_active as "isActive",
|
||||||
created_at as "createdAt"
|
created_at as "createdAt"
|
||||||
FROM domains
|
FROM domains
|
||||||
@@ -190,7 +192,7 @@ export class DatabaseStorage implements IStorage {
|
|||||||
organizationId: row.organizationId as string,
|
organizationId: row.organizationId as string,
|
||||||
isActive: Boolean(row.isActive),
|
isActive: Boolean(row.isActive),
|
||||||
createdAt: row.createdAt ? new Date(row.createdAt as string) : new Date(),
|
createdAt: row.createdAt ? new Date(row.createdAt as string) : new Date(),
|
||||||
providerId: '', // Default value for expected field
|
providerId: row.providerId as string || '', // Use providerId from the database
|
||||||
lastUpdated: null // Default value for expected field
|
lastUpdated: null // Default value for expected field
|
||||||
}));
|
}));
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user