Skip to content

Commit 440eb74

Browse files
committed
Revert accidental hardcoding of portal link, add param description for generateQR
1 parent 26fd403 commit 440eb74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commands/Checkin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default class Checkin extends Command {
184184
*/
185185
private async getFutureEvents(): Promise<PortalEvent[]> {
186186
try {
187-
const portalAPIResponse = (await got(`https://api.acmucsd.com/api/v2/event/future`, {
187+
const portalAPIResponse = (await got(`${this.client.settings.portalAPI.url}/event/future`, {
188188
headers: {
189189
'Content-Type': 'application/json',
190190
Authorization: `Bearer ${this.client.apiToken}`,

src/commands/QR.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export default class QR extends Command {
4545
* @param data The content to put in the QR code.
4646
* @param title event name
4747
* @param subtitle event description
48+
* @param org whether or not the ACM or AS relevant graphics should be used, default to ACM
4849
* @returns newly generated QR code url
4950
*/
5051
public static generateQR(data: string, title: string, subtitle: string, org: string = 'acm'): string {

0 commit comments

Comments
 (0)