diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-08-24 03:56:02 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-08-24 04:51:24 -0400 |
| commit | e1a8827a587949f3ac0c7a299e2745820ab368e1 (patch) | |
| tree | 724c5974eaeec0242182c3ff6087f651b9e5a8f7 /src/invite/app.rs | |
| parent | 4eb63b8adda4559df3dadcf721e2bb0d1f65a01f (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/invite/app.rs')
| -rw-r--r-- | src/invite/app.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invite/app.rs b/src/invite/app.rs index a286a8f..14c1440 100644 --- a/src/invite/app.rs +++ b/src/invite/app.rs @@ -47,7 +47,7 @@ impl<'a> Invites<'a> { name: &Name, password: &Password, accepted_at: &DateTime, - ) -> Result<(User, Secret), AcceptError> { + ) -> Result<Secret, AcceptError> { let create = Create::begin(name, password, accepted_at); let mut tx = self.db.begin().await?; @@ -74,9 +74,9 @@ impl<'a> Invites<'a> { let secret = tx.tokens().issue(stored.user(), accepted_at).await?; tx.commit().await?; - let login = stored.publish(self.events); + let _ = stored.publish(self.events); - Ok((login.as_created(), secret)) + Ok(secret) } pub async fn expire(&self, relative_to: &DateTime) -> Result<(), sqlx::Error> { |
