Generic (id) doesn't work on domains? Okay...
This commit is contained in:
parent
37193887ac
commit
99a1abe88b
|
@ -30,7 +30,7 @@
|
|||
(defclass dns-domain ()
|
||||
((id :col-type integer
|
||||
:col-identity t
|
||||
:reader id)
|
||||
:reader domain-id)
|
||||
(name :col-type (varchar 255)
|
||||
:initarg :name
|
||||
:reader domain-name)
|
||||
|
@ -66,7 +66,7 @@
|
|||
(error 'domain-name-missing :domain domain)))
|
||||
|
||||
(defun get-records (domain name type)
|
||||
(let ((domain-id (id (get-domain domain))))
|
||||
(let ((domain-id (domain-id (get-domain domain))))
|
||||
(select-dao 'dns-record (:and (:= 'domain-id domain-id)
|
||||
(:= 'name (format nil "~A.~A" name domain))
|
||||
(:= 'type type)))))
|
||||
|
@ -79,7 +79,7 @@
|
|||
(id record))))
|
||||
|
||||
(defun insert-record (domain name type content)
|
||||
(let ((domain-id (id (get-domain domain))))
|
||||
(let ((domain-id (domain-id (get-domain domain))))
|
||||
(insert-dao (make-instance 'dns-record
|
||||
:domain-id domain-id
|
||||
:name (format nil "~A.~A" name domain)
|
||||
|
|
Loading…
Reference in New Issue