mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 13:40:13 +01:00
Add applying to event
This commit is contained in:
@@ -35,3 +35,13 @@ export function getMyAccount() {
|
||||
return data;
|
||||
});
|
||||
}
|
||||
export function getMyRegisteredEventIds() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const res = yield fetch("/api/auth/my_events");
|
||||
if (!res.ok) {
|
||||
throw Error("Użytkownik niezalogowany!");
|
||||
}
|
||||
const events = yield res.json();
|
||||
return events.map((event) => event.eventId);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user