Skip to content

Commit 3e89db1

Browse files
authored
Merge pull request #157 from Hirevo/fix/cargo-owner-errors
Fixed errors in `cargo owner` commands
2 parents 841e44a + 556edc5 commit 3e89db1

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: crates/alexandrie/src/api/crates/owners.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub(crate) async fn put(mut req: Request<State>) -> tide::Result {
171171
};
172172

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

276276
let data = json!({
277-
"ok": "true",
277+
"ok": true,
278278
"msg": format!("{0} has been removed from authors of {1}", authors_list, name),
279279
});
280280
Ok(utils::response::json(&data))

Diff for: docs/src/programmatic-api/crates/owners/delete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Currently, the registry will return an object of the following shape:
4343
```js
4444
{
4545
// Whether the operation went well.
46-
"ok": "true",
46+
"ok": true,
4747
// A human-displayable message describing the operation's outcome.
4848
"msg": "John Doe and Nicolas Polomack has been removed from authors",
4949
}

Diff for: docs/src/programmatic-api/crates/owners/put.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Currently, the registry will return an object of the following shape:
4343
```js
4444
{
4545
// Whether the operation went well.
46-
"ok": "true",
46+
"ok": true,
4747
// A human-displayable message describing the operation's outcome.
4848
"msg": "John Doe and Nicolas Polomack has been added as authors",
4949
}

Diff for: docs/src/programmatic-api/crates/unyank/put.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Currently, the registry will return an object of the following shape:
2929
```js
3030
{
3131
// Whether the operation went well.
32-
"ok": "true",
32+
"ok": true,
3333
}
3434
```

Diff for: docs/src/programmatic-api/crates/yank/delete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ Currently, the registry will return an object of the following shape:
2929
```js
3030
{
3131
// Whether the operation went well.
32-
"ok": "true",
32+
"ok": true,
3333
}
3434
```

0 commit comments

Comments
 (0)