summaryrefslogtreecommitdiff
path: root/src/user
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-08-24 03:56:02 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-08-24 04:51:24 -0400
commite1a8827a587949f3ac0c7a299e2745820ab368e1 (patch)
tree724c5974eaeec0242182c3ff6087f651b9e5a8f7 /src/user
parent4eb63b8adda4559df3dadcf721e2bb0d1f65a01f (diff)
Stop returning an HTTP body from `POST /api/invite/:id`.
As with the previous commits, the body was never actually being used.
Diffstat (limited to 'src/user')
-rw-r--r--src/user/history.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user/history.rs b/src/user/history.rs
index 72e0aee..4f99130 100644
--- a/src/user/history.rs
+++ b/src/user/history.rs
@@ -20,6 +20,7 @@ impl History {
// if this returns a redacted or modified version of the user. If we implement
// renames by redacting the original name, then this should return the edited
// user, not the original, even if that's not how it was "as created.")
+ #[cfg(test)]
pub fn as_created(&self) -> User {
self.user.clone()
}