File tree Expand file tree Collapse file tree
compliance-checks/metadata Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ export async function updateMetadataDatabase(
507507 } ;
508508 let citationValidation = {
509509 isValid : existing . citation_status === "valid" ,
510- status : existing . citation || "" ,
510+ status : existing . citation_status || "" ,
511511 message : existing . citation_validation_message || "Not yet validated" ,
512512 } ;
513513
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import dayjs from "dayjs";
88import timezone from "dayjs/plugin/timezone.js" ;
99import utc from "dayjs/plugin/utc.js" ;
1010import dbInstance from "../../db.js" ;
11+ import { checkForLicense } from "../../compliance-checks/license/index.js" ;
1112import { updateMetadataDatabase } from "../../compliance-checks/metadata/index.js" ;
1213
1314dayjs . extend ( utc ) ;
@@ -653,7 +654,11 @@ export async function iterateCommitDetails(
653654 if (
654655 [ "LICENSE" , "LICENSE.md" , "LICENSE.txt" ] . includes ( commits [ i ] . added [ j ] )
655656 ) {
656- const license = await checkForLicense ( context , owner , repoName ) ;
657+ const license = await checkForLicense (
658+ context ,
659+ owner ,
660+ repository . name
661+ ) ;
657662 subjects . license = license ;
658663 continue ;
659664 }
You can’t perform that action at this time.
0 commit comments