summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-12-20 20:51:48 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-12-20 20:51:48 +0100
commit164204149c458378a0f9126f629c043e7cb7c3f2 (patch)
treec5ea6d68101c581a93fcaf7e1c358b05797f02b4 /overlays
parent872b0abaf557048407b5b9c0ef853895c1ede87d (diff)
downloadnixos-164204149c458378a0f9126f629c043e7cb7c3f2.tar
nixos-164204149c458378a0f9126f629c043e7cb7c3f2.tar.gz
nixos-164204149c458378a0f9126f629c043e7cb7c3f2.tar.bz2
nixos-164204149c458378a0f9126f629c043e7cb7c3f2.tar.xz
nixos-164204149c458378a0f9126f629c043e7cb7c3f2.zip
bump
Diffstat (limited to 'overlays')
-rw-r--r--overlays/prometheus-lvm-exporter.nix2
-rw-r--r--overlays/spm/server/Spm/Server.hs4
2 files changed, 4 insertions, 2 deletions
diff --git a/overlays/prometheus-lvm-exporter.nix b/overlays/prometheus-lvm-exporter.nix
index ead1e820..8568e24d 100644
--- a/overlays/prometheus-lvm-exporter.nix
+++ b/overlays/prometheus-lvm-exporter.nix
@@ -3,7 +3,7 @@
3 pname = "prometheus-lvm-exporter"; 3 pname = "prometheus-lvm-exporter";
4 inherit (sources.prometheus-lvm-exporter) version src; 4 inherit (sources.prometheus-lvm-exporter) version src;
5 5
6 vendorHash = "sha256-DyvUM3pP2P1IGfXKpkR5Y4CVcnSBsnNy0kd3WTjbWpg="; 6 vendorHash = "sha256-5rNrCkX+y8pItkpkvYO7uVgT/sIkUthwJ41RkMsefL4=";
7 7
8 doCheck = false; 8 doCheck = false;
9 9
diff --git a/overlays/spm/server/Spm/Server.hs b/overlays/spm/server/Spm/Server.hs
index 6bb9dfe6..e6a876cb 100644
--- a/overlays/spm/server/Spm/Server.hs
+++ b/overlays/spm/server/Spm/Server.hs
@@ -275,7 +275,9 @@ spmServer dom mbox = whoami
275 275
276 spmSql $ do 276 spmSql $ do
277 Entity mailboxMappingMailbox _ <- maybe (throwError err404) return <=< getBy $ UniqueMailbox mbox 277 Entity mailboxMappingMailbox _ <- maybe (throwError err404) return <=< getBy $ UniqueMailbox mbox
278 maybe (throwError err400{ errBody = "Address already claimed" }) (const $ return NoContent) =<< insertUnique MailboxMapping{mailboxMappingExtension = Nothing, mailboxMappingDomain = dom, mailboxMappingReject = False, ..} 278 insert_ MailboxMapping{mailboxMappingExtension = Nothing, mailboxMappingDomain = dom, mailboxMappingReject = False, ..}
279
280 return NoContent
279 281
280 listMappings = spmSql $ do 282 listMappings = spmSql $ do
281 Entity mailboxId _ <- maybe (throwError err404) return <=< getBy $ UniqueMailbox mbox 283 Entity mailboxId _ <- maybe (throwError err404) return <=< getBy $ UniqueMailbox mbox