Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Merged
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
2 changes: 1 addition & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
const owner = await OAuth.getTokenOwner(client, token);
if (!owner) return { success: false };
const user = await this.getUser();
user.login(owner);

Check failure on line 761 in src/actions.ts

View workflow job for this annotation

GitHub Actions / build (24.x)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
return this.session.getAssertion(
user.id, Config.challengekeyid, user, challstr
);
Expand Down Expand Up @@ -831,7 +831,7 @@
const data = await tables.teams.selectOne(
full ? SQL`team, private, ownerid, format, title, views` : SQL`ownerid, team, private`
)`WHERE teamid = ${teamid}`;
const owns = data?.ownerid === user.id;
const owns = !!user.loggedIn && data?.ownerid === user.id;
if (!data || (owns ? false : (data.private && (password !== toID(data.private))))) {
return { team: null };
}
Expand Down
Loading