Skip to content
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
4 changes: 2 additions & 2 deletions src/nocodb-integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MEMBER_ROLE_ID = "753524901708693558";
const LIFE_MEMBER_ROLE_ID = "702889882598506558";
const CSSA_SERVER_ID = process.env.CSSA_SERVER as Snowflake;
const DB_REQUEST_URL =
"https://db.cssa.club/api/v2/tables/mj43d15qwi3hi8p/records?fields=id%2Cdiscord_username%2Clife_member%2Ccommittee%2Ccro&where=where%3D%28discord_username%2Cisnot%2Cnull%29&limit=1000&shuffle=0&offset=0";
"https://db.cssa.club/api/v2/tables/mr98mt60g35hk2p/records?fields=id%2Cdiscord_username%2Clife_member%2Ccommittee%2Ccro&where=where%3D%28discord_username%2Cisnot%2Cnull%29&limit=1000&shuffle=0&offset=0";

if (!CSSA_SERVER_ID) throw new Error("CSSA_SERVER not set.");

Expand Down Expand Up @@ -199,7 +199,7 @@ export async function attachNocoDBWebhookListener(expressApp: Express) {
);
}

class MemberNotFoundError extends Error {}
class MemberNotFoundError extends Error { }

async function getUser(rawUsername: string): Promise<GuildMember> {
const [username, discriminator] = transformUsername(rawUsername);
Expand Down