Skip to content

Commit 556edc5

Browse files
committed
fix: fixed errors in cargo owner commands
1 parent 841e44a commit 556edc5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

crates/alexandrie/src/api/crates/owners.rs

Lines changed: 2 additions & 2 deletions
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))

docs/src/programmatic-api/crates/owners/delete.md

Lines changed: 1 addition & 1 deletion
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
}

docs/src/programmatic-api/crates/owners/put.md

Lines changed: 1 addition & 1 deletion
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
}

docs/src/programmatic-api/crates/unyank/put.md

Lines changed: 1 addition & 1 deletion
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
```

docs/src/programmatic-api/crates/yank/delete.md

Lines changed: 1 addition & 1 deletion
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)