|
@@ -50,7 +50,7 @@ export const processBlock = async (api: ApiPromise, client: Discord.Client, bloc
|
|
|
const applicationOpeningId = data[0] as OpeningId;
|
|
|
const applicationId = data[1] as ApplicationId;
|
|
|
const application = await getApplication(api, section, hash, applicationId);
|
|
|
- const hiringApplication = await getHiringApplication(api, section, hash, applicationId);
|
|
|
+ const hiringApplication = await getHiringApplication(api, section, hash, application.application_id);
|
|
|
const hiringApplicationText = JSON.parse(hiringApplication.human_readable_text.toString());
|
|
|
const openingObject = await getOpening(api, section, hash, applicationOpeningId);
|
|
|
const hiringOpening = await getHiringOpening(api, hash, openingObject.hiring_opening_id);
|