Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
na57 committed May 30, 2024
1 parent 22278c9 commit f31ff1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nagu-owl",
"version": "1.11.7",
"version": "1.11.10",
"description": "[![Node.js CI](https://github.com/nagucc/owl/actions/workflows/node.js.yml/badge.svg)](https://github.com/nagucc/owl/actions/workflows/node.js.yml)",
"type": "module",
"main": "dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ export class RdfsResource extends Notion<string> implements IRdfsResource {

// 设置新值
const setOperations = [];
if (label) setOperations.push(this.setPropertyValue(rdfs.label, label));
if (comment) setOperations.push(this.setPropertyValue(rdfs.comment, comment));
if (isDefinedBy) setOperations.push(this.setPropertyValue(rdfs.isDefinedBy, isDefinedBy.toString()));
if (seeAlso) setOperations.push(this.setPropertyValue(rdfs.seeAlso, seeAlso));
setOperations.push(label ? this.setPropertyValue(rdfs.label, label) : {});
setOperations.push(comment ? this.setPropertyValue(rdfs.comment, comment) : {});
setOperations.push(isDefinedBy ? this.setPropertyValue(rdfs.isDefinedBy, isDefinedBy.toString()) : {});
setOperations.push(seeAlso ? this.setPropertyValue(rdfs.seeAlso, seeAlso) : {});

const ts = await Promise.all(setOperations);

Expand Down

0 comments on commit f31ff1f

Please sign in to comment.