Skip to content

Commit

Permalink
chore: Remove shares.info apiVersion 1 (#3758)
Browse files Browse the repository at this point in the history
* chore: Remove shares.info apiVersion 1

* fix: Sporadic test failure
  • Loading branch information
tommoor committed Jul 9, 2022
1 parent caaf6dd commit da4a10e
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 247 deletions.
1 change: 0 additions & 1 deletion app/stores/SharesStore.ts
Expand Up @@ -59,7 +59,6 @@ export default class SharesStore extends BaseStore<Share> {
try {
const res = await client.post(`/${this.modelName}s.info`, {
documentId,
apiVersion: 2,
});

if (isUndefined(res)) {
Expand Down
8 changes: 4 additions & 4 deletions server/routes/api/__snapshots__/shares.test.ts.snap
Expand Up @@ -9,7 +9,7 @@ Object {
}
`;

exports[`#shares.info should require authentication 1`] = `
exports[`#shares.list should require authentication 1`] = `
Object {
"error": "authentication_required",
"message": "Authentication required",
Expand All @@ -18,7 +18,7 @@ Object {
}
`;

exports[`#shares.list should require authentication 1`] = `
exports[`#shares.revoke should require authentication 1`] = `
Object {
"error": "authentication_required",
"message": "Authentication required",
Expand All @@ -27,7 +27,7 @@ Object {
}
`;

exports[`#shares.revoke should require authentication 1`] = `
exports[`#shares.update should require authentication 1`] = `
Object {
"error": "authentication_required",
"message": "Authentication required",
Expand All @@ -36,7 +36,7 @@ Object {
}
`;

exports[`#shares.update should require authentication 1`] = `
exports[`should require authentication 1`] = `
Object {
"error": "authentication_required",
"message": "Authentication required",
Expand Down

0 comments on commit da4a10e

Please sign in to comment.