mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-18 13:14:59 +01:00
Psgl auth db (#1095)
* feat(cdk-mintd): add dedicated auth database configuration support
This commit is contained in:
@@ -198,9 +198,11 @@ where
|
||||
for (endpoint, auth) in protected_endpoints.iter() {
|
||||
if let Err(err) = query(
|
||||
r#"
|
||||
INSERT OR REPLACE INTO protected_endpoints
|
||||
INSERT INTO protected_endpoints
|
||||
(endpoint, auth)
|
||||
VALUES (:endpoint, :auth);
|
||||
VALUES (:endpoint, :auth)
|
||||
ON CONFLICT (endpoint) DO UPDATE SET
|
||||
auth = EXCLUDED.auth;
|
||||
"#,
|
||||
)?
|
||||
.bind("endpoint", serde_json::to_string(endpoint)?)
|
||||
|
||||
Reference in New Issue
Block a user