mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-31 12:48:03 +00:00
Fix: Improve domain data retrieval by using raw SQL queries.
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/62425b75-012d-44c2-9bfc-dee756b8c336.jpg
This commit is contained in:
+2
-1
@@ -173,7 +173,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
|
||||
app.get("/api/domains/:id", requireRole(["admin", "manager", "user", "readonly"]), async (req, res) => {
|
||||
try {
|
||||
const id = parseInt(req.params.id);
|
||||
// Use the id as a string directly without parsing as integer
|
||||
const id = req.params.id;
|
||||
const domain = await storage.getDomain(id);
|
||||
|
||||
if (!domain) {
|
||||
|
||||
Reference in New Issue
Block a user