You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Sync fixes
This commit is contained in:
@ -52,10 +52,13 @@ class BaseModel {
|
||||
static fieldNames(withPrefix = false) {
|
||||
let output = this.db().tableFieldNames(this.tableName());
|
||||
if (!withPrefix) return output;
|
||||
|
||||
let p = withPrefix === true ? this.tableName() : withPrefix;
|
||||
let temp = [];
|
||||
for (let i = 0; i < output.length; i++) {
|
||||
temp.push(this.tableName() + '.' + output[i]);
|
||||
temp.push(p + '.' + output[i]);
|
||||
}
|
||||
|
||||
return temp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user