fix: avoid duplicate status code

This commit is contained in:
boring_nick 2023-10-25 12:08:38 +03:00
parent c44c9d8776
commit 0ede6d3f23
1 changed files with 1 additions and 8 deletions

View File

@ -84,14 +84,7 @@ impl OperationOutput for Error {
(
Some(403),
aide::openapi::Response {
description: Error::ChannelOptedOut.to_string(),
..res.clone()
},
),
(
Some(403),
aide::openapi::Response {
description: Error::UserOptedOut.to_string(),
description: "Channel or user has opted out".to_owned(),
..res.clone()
},
),