Skip to content

Commit

Permalink
Merge pull request #157 from Hirevo/fix/cargo-owner-errors
Browse files Browse the repository at this point in the history
Fixed errors in `cargo owner` commands
  • Loading branch information
Hirevo authored May 26, 2023
2 parents 841e44a + 556edc5 commit 3e89db1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/alexandrie/src/api/crates/owners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub(crate) async fn put(mut req: Request<State>) -> tide::Result {
};

let data = json!({
"ok": "true",
"ok": true,
"msg": format!("{0} has been added as authors of {1}", authors_list, name),
});
Ok(utils::response::json(&data))
Expand Down Expand Up @@ -274,7 +274,7 @@ pub(crate) async fn delete(mut req: Request<State>) -> tide::Result {
};

let data = json!({
"ok": "true",
"ok": true,
"msg": format!("{0} has been removed from authors of {1}", authors_list, name),
});
Ok(utils::response::json(&data))
Expand Down
2 changes: 1 addition & 1 deletion docs/src/programmatic-api/crates/owners/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Currently, the registry will return an object of the following shape:
```js
{
// Whether the operation went well.
"ok": "true",
"ok": true,
// A human-displayable message describing the operation's outcome.
"msg": "John Doe and Nicolas Polomack has been removed from authors",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/programmatic-api/crates/owners/put.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Currently, the registry will return an object of the following shape:
```js
{
// Whether the operation went well.
"ok": "true",
"ok": true,
// A human-displayable message describing the operation's outcome.
"msg": "John Doe and Nicolas Polomack has been added as authors",
}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/programmatic-api/crates/unyank/put.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Currently, the registry will return an object of the following shape:
```js
{
// Whether the operation went well.
"ok": "true",
"ok": true,
}
```
2 changes: 1 addition & 1 deletion docs/src/programmatic-api/crates/yank/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ Currently, the registry will return an object of the following shape:
```js
{
// Whether the operation went well.
"ok": "true",
"ok": true,
}
```

0 comments on commit 3e89db1

Please sign in to comment.