minor
This commit is contained in:
parent
2e90bbdab9
commit
a40b583d03
|
@ -445,13 +445,12 @@ class WikiItem {
|
||||||
|
|
||||||
storeData ( data ) {
|
storeData ( data ) {
|
||||||
if ( data == null )
|
if ( data == null )
|
||||||
return Promise.reject( new Error( 'data == null' ))
|
return
|
||||||
|
|
||||||
const savePath = osPath.join( wiki.saveDir, this.localPath())
|
const savePath = osPath.join( wiki.saveDir, this.localPath())
|
||||||
log( '+', savePath )
|
log( '+', savePath )
|
||||||
|
|
||||||
return fs.outputFile( savePath, data )
|
return fs.outputFile( savePath, data )
|
||||||
.then( () => this.localPath() )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async storeMetadata ( ) {
|
async storeMetadata ( ) {
|
||||||
|
@ -1198,7 +1197,7 @@ function initMetadataStorage ( samplePageDOM ) {
|
||||||
'id INTEGER PRIMARY KEY',
|
'id INTEGER PRIMARY KEY',
|
||||||
'mimeId INTEGER',
|
'mimeId INTEGER',
|
||||||
'revision INTEGER',
|
'revision INTEGER',
|
||||||
'urlKey TEXT',
|
'urlKey TEXT UNIQUE',
|
||||||
'titleKey TEXT',
|
'titleKey TEXT',
|
||||||
].join(',') +
|
].join(',') +
|
||||||
');' +
|
');' +
|
||||||
|
@ -1219,9 +1218,6 @@ function initMetadataStorage ( samplePageDOM ) {
|
||||||
'COMMIT;' +
|
'COMMIT;' +
|
||||||
''
|
''
|
||||||
)
|
)
|
||||||
}
|
|
||||||
)
|
|
||||||
.then( () => samplePageDOM )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeMetadataStorage () {
|
function closeMetadataStorage () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user