Skip to content

Commit

Permalink
Patch uploader first
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jul 17, 2024
1 parent 0fbf875 commit 2fe89d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,14 @@ export class Uploader {
async validate() {
clean_rdf(this.rdf);
console.debug("Validating RDF: ", this.rdf);
// the uploader info email won't be complete until the user logs in
// so we remove it before validation
const uploader_info = this.rdf.uploader;
this.rdf.uploader = null;
const result = await functions.validate(this.rdf);
// restore the uploader info
this.rdf.uploader = uploader_info;

console.log(result);
if (!result.success) {
console.error("Validation errors:");
Expand Down

0 comments on commit 2fe89d4

Please sign in to comment.