Skip to content

Commit 10a632c

Browse files
committed
Fix more stuff
1 parent 98cc319 commit 10a632c

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/lib/stores/UserSharesStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const OutgoingOutstandingInvites = writable<ShareInviteBaseDetails[]>([])
88

99
export async function refreshUserShares() {
1010
try {
11-
UserShares.set(await shockerSharesV2Api.sharesGetSharesByUsers());
11+
UserShares.set(await shockerSharesV2Api.userSharesGetSharesByUsers());
1212
} catch (error) {
1313
handleApiError(error);
1414
throw error;
@@ -17,7 +17,7 @@ export async function refreshUserShares() {
1717

1818
export async function refreshOutgoingInvites() {
1919
try {
20-
OutgoingOutstandingInvites.set(await shockerSharesV2Api.sharesGetOutgoingInvitesList());
20+
OutgoingOutstandingInvites.set(await shockerSharesV2Api.userSharesGetOutgoingInvitesList());
2121
} catch (error) {
2222
handleApiError(error);
2323
throw error;

src/routes/(authenticated)/shares/user/dialog-share-code-create.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
7272
async function onFormSubmit() {
7373
try {
74-
const createdCode = await shockerSharesV2Api.sharesCreateShareInvite({
74+
const createdCode = await shockerSharesV2Api.userSharesCreateShareInvite({
7575
user: fetchedUser?.id,
7676
shockers: shockerIds.map((id) => ({
7777
id: id,

src/routes/(authenticated)/shares/user/dialog-share-code-redeem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
async function onFormSubmit() {
3333
try {
34-
redeemPromise = shockerSharesV2Api.sharesRedeemInvite(userInput);
34+
redeemPromise = shockerSharesV2Api.userSharesRedeemInvite(userInput);
3535
await redeemPromise;
3636
redeemed = true;
3737
await refreshUserShares();

src/routes/(authenticated)/shares/user/outstanding/outstanding-share-item.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
async function removeInviteCall(value: ShareInviteBaseDetails) {
2626
try {
27-
await shockerSharesV2Api.sharesDeleteOutgoingInvite(shareInvite.id);
27+
await shockerSharesV2Api.userSharesDeleteOutgoingInvite(shareInvite.id);
2828
if (shareInvite.sharedWith) {
2929
toast.success(`Removed invite for ${shareInvite.sharedWith.name} (${shareInvite.id})`);
3030
} else {

0 commit comments

Comments
 (0)