Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong method call #240

Merged
merged 5 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v3.2.1
## Fixes
- Fix wrong method call on endpoint

# v3.2.0
## New
- Added `Copy invite link` to bars
Expand Down
2 changes: 1 addition & 1 deletion src/api/BarAssistantClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class BarAssistantClient {
}

static async confirmAccount(id: number, hash: string) {
return (await client.POST('/auth/verify/{id}/{hash}', { params: { path: { id: id, hash: hash } } })).data
return (await client.GET('/auth/verify/{id}/{hash}', { params: { path: { id: id, hash: hash } } })).data
}

static async getIngredients(query = {}) {
Expand Down
8 changes: 4 additions & 4 deletions src/api/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export interface paths {
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** Confirm user account */
post: operations["015719985fb92cfb18e9c6a19c82b1db"];
get: operations["46fe45b80f30383e9f9fe664be4d5dff"];
put?: never;
post?: never;
delete?: never;
options?: never;
head?: never;
Expand Down Expand Up @@ -2668,7 +2668,7 @@ export interface operations {
};
};
};
"015719985fb92cfb18e9c6a19c82b1db": {
"46fe45b80f30383e9f9fe664be4d5dff": {
parameters: {
query?: never;
header?: never;
Expand Down
60 changes: 30 additions & 30 deletions src/locales/messages/pl-PL.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"hr-HR": "Chorwacki",
"de-DE": "Niemiecki",
"pl-PL": "Polski",
"it-IT": "Italian",
"sv-SE": "Swedish",
"it-IT": "Włoski",
"sv-SE": "Szwedzki",
"help": "Pomoc w tłumaczeniach"
},
"shelf": {
Expand All @@ -31,7 +31,7 @@
"remove-from-list": "Usuń z listy zakupów",
"update-success": "Składnik został pomyślnie zaktualizowany",
"create-success": "Składnik został pomyślnie utworzony",
"name-placeholder": "<Not selected>",
"name-placeholder": "<Nie zaznaczono>",
"in-shelf": "Masz ten składnik",
"cocktail-children": "Używany w {total} koktajlach",
"delete-confirm": "Spowoduje to trwałe usunięcie składnika z nazwą \"{name}\". Ta akcja zmodyfikuje {total} przepisów na koktajl.",
Expand Down Expand Up @@ -61,23 +61,23 @@
"variety-note": "Recipe matching will include the parent ingredient as a substitute (depending on user settings)",
"ingredients": "Składniki",
"used_as_substitute_for": "Used as a substitute for",
"can_be_substituted_with": "Can be substituted with"
"can_be_substituted_with": "Można zamienić na"
},
"share": {
"title": "Share",
"title": "Udostępnij",
"copy-json": "Kopiuj jako JSON",
"copy-yaml": "Kopiuj jako YAML",
"format-copied": "Tekst skopiowany",
"format-copy-failed": "Kopiowanie tekstu nie powiodło się",
"copy-text": "Kopiuj jako zwykły tekst",
"copy-md": "Kopiuj jako Markdown",
"copy-xml": "Kopiuj jako XML",
"copy-json-ld": "Copy JSON+LD schema"
"copy-json-ld": "Skopiuj schemat JSON+LD"
},
"settings": "Ustawienia",
"logout": "Wyloguj",
"profile": "Profil",
"filename": "File name",
"filename": "Nazwa pliku",
"users": {
"title": "Użytkownicy",
"add": "Dodaj użytkownika",
Expand All @@ -102,7 +102,7 @@
"Layer": "Layer"
},
"total": {
"approx": "Approx. total",
"approx": "Około łącznie",
"title": "Ogółem",
"cocktails": "Ogółem koktajli",
"ingredients": "Ogółem składników"
Expand All @@ -112,10 +112,10 @@
"favorites": "Twoje ostatnie ulubione"
},
"strength": "Strength",
"rating": "Rating",
"created": "Created",
"updated": "Updated",
"non-alcoholic": "Non alcoholic",
"rating": "Ocena",
"created": "Utworzono",
"updated": "Zaktualizowano",
"non-alcoholic": "Bezalkoholowe",
"weak": "Słaby",
"medium": "Średni",
"strong": "Mocny",
Expand All @@ -135,11 +135,11 @@
"edit": "Edytuj",
"remove": "Usuń",
"description": "Opis",
"media": "Media",
"media": "Multimedia",
"field-supports-md": "To pole obsługuje markdown.",
"cancel": "Anulować",
"cancel": "Anuluj",
"save": "Zapisz",
"join": "Join",
"join": "Dołącz",
"recipe-information": "Informacje o przepisie",
"additional-information": "Dodatkowe informacje",
"source": "Źródło",
Expand Down Expand Up @@ -178,7 +178,7 @@
"substitutes": "Zamienniki",
"no-substitutes": "Nie wybrano zamienników.",
"units-help-text": "Use \"oz\", \"cl\", \"ml\" for common fluid units to enable unit conversion on cocktail page.",
"servings": "Servings",
"servings": "Porcje",
"print-recipe": "Wydrukuj przepis",
"create-public-link": "Utwórz link publiczny",
"avg-rating": "Średnia ocena",
Expand All @@ -189,7 +189,7 @@
"add-success": "Kategoria składników została pomyślnie dodana.",
"edit": "Edytuj kategorię",
"update-success": "Kategoria składnika została pomyślnie zaktualizowana.",
"confirm-delete": "This will permanently category with name \"{name}\".",
"confirm-delete": "Spowoduje to trwałe usunięcie tagu o nazwie \"{name}\".",
"delete-success": "Kategoria składnika została pomyślnie usunięta"
},
"origin": "Pochodzenie",
Expand Down Expand Up @@ -222,22 +222,22 @@
},
"glass-type": {
"types": "Glass types",
"title": "Glass type",
"add": "Add glass type",
"edit": "Edit glass type",
"title": "Rodzaj szkła",
"add": "Dodaj typ szkła",
"edit": "Edytuj typ szkła",
"confirm-delete": "This will permanently glass type with name \"{name}\".",
"delete-success": "Glass type deleted successfully",
"update-success": "Glass type updated successfully",
"add-success": "Glass type added successfully",
"volume": "Volume"
"volume": "Objętość"
},
"information": "Information",
"image-url": "Image URL",
"information": "Informacje",
"image-url": "URL obrazka",
"public-dialog": {
"title": "Cocktail public link",
"public_at": "Made public on: {date}",
"missing": "No public link available",
"action-copy": "Copy link",
"title": "Publiczny link koktajlu",
"public_at": "Upubliczniony: {date}",
"missing": "Brak publicznego linku",
"action-copy": "Kopiuj odnośnik",
"action-delete": "Delete link",
"action-generate": "Generate link",
"toasts": {
Expand Down Expand Up @@ -288,10 +288,10 @@
"collections": {
"add-to": "Add to collection",
"collection": "Collection",
"create": "Create a new collection",
"create": "Utwórz nową kolekcję",
"title": "Kolekcje",
"add": "Create collection",
"edit": "Edit collection",
"add": "Utwórz kolekcję",
"edit": "Edytuj kolekcję",
"confirm-delete": "This will permanently delete collection with name \"{name}\".",
"delete-success": "Collection successfully removed",
"update-success": "Collection updated successfully",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/messages/pt-PT.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"locales": {
"en-US": "English",
"en-US": "Inglês",
"fr-FR": "French",
"hr-HR": "Croatian",
"de-DE": "German",
Expand Down
Loading