Skip to content

Commit

Permalink
Avoid cloning function object
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Nov 18, 2024
1 parent c6157ef commit 9cf7e4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,15 @@ export async function loadOboGraphJson(this: OntologyStore, db: Database) {

// record some metadata about this ontology and load operation
const tx2 = db.transaction('meta', 'readwrite')
const { update, ...otherOptions } = this.options
await tx2.objectStore('meta').add(
{
ontologyRecord: {
name: this.ontologyName,
version: this.ontologyVersion,
sourceLocation: this.sourceLocation,
},
storeOptions: this.options,
storeOptions: otherOptions,
graphMeta: graph.meta,
timestamp: String(new Date()),
schemaVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export function clientDataStoreFactory(
const controller = new AbortController()
const job = {
name: message,
statusMessage: 'Uploading ontology, this may take awhile',
statusMessage: `Uploading ontology "${name}", version "${version}", this may take awhile`,
progressPct: progress,
cancelCallback: () => {
controller.abort()
Expand Down

0 comments on commit 9cf7e4d

Please sign in to comment.