mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-18 05:43:29 +00:00
Enhance DNS record management by adding support for optional DNS providers.
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/996e6e00-8df0-4e11-8054-4bedce75e1d8.jpg
This commit is contained in:
+17
-11
@@ -204,17 +204,23 @@ export const insertDomainSchema = createInsertSchema(domains)
|
||||
providerId: z.string().uuid().optional(),
|
||||
});
|
||||
|
||||
export const insertDnsRecordSchema = createInsertSchema(dnsRecords).pick({
|
||||
domainId: true,
|
||||
name: true,
|
||||
type: true,
|
||||
content: true,
|
||||
ttl: true,
|
||||
proxied: true,
|
||||
isActive: true,
|
||||
isAutoIP: true,
|
||||
notes: true,
|
||||
});
|
||||
export const insertDnsRecordSchema = createInsertSchema(dnsRecords)
|
||||
.pick({
|
||||
domainId: true,
|
||||
name: true,
|
||||
type: true,
|
||||
content: true,
|
||||
ttl: true,
|
||||
proxied: true,
|
||||
isActive: true,
|
||||
isAutoIP: true,
|
||||
notes: true,
|
||||
providerId: true,
|
||||
})
|
||||
.extend({
|
||||
// Override providerId to make it optional
|
||||
providerId: z.string().uuid().nullable().optional(),
|
||||
});
|
||||
|
||||
export const insertProviderSchema = createInsertSchema(providers).pick({
|
||||
name: true,
|
||||
|
||||
Reference in New Issue
Block a user