Don't immediately re-upload synced relations
This commit is contained in:
parent
7eb2f5aad3
commit
7cc48426b3
1 changed files with 13 additions and 2 deletions
|
@ -133,8 +133,19 @@ Zotero.Relation.prototype.save = function () {
|
||||||
throw ("Missing object in Zotero.Relation.save()");
|
throw ("Missing object in Zotero.Relation.save()");
|
||||||
}
|
}
|
||||||
|
|
||||||
var sql = "INSERT INTO relations (libraryID, subject, predicate, object) VALUES (?, ?, ?, ?)";
|
var sql = "INSERT INTO relations "
|
||||||
var insertID = Zotero.DB.query(sql, [this.libraryID, this.subject, this.predicate, this.object]);
|
+ "(libraryID, subject, predicate, object, clientDateModified) "
|
||||||
|
+ "VALUES (?, ?, ?, ?, ?)";
|
||||||
|
var insertID = Zotero.DB.query(
|
||||||
|
sql,
|
||||||
|
[
|
||||||
|
this.libraryID,
|
||||||
|
this.subject,
|
||||||
|
this.predicate,
|
||||||
|
this.object,
|
||||||
|
Zotero.DB.transactionDateTime
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
return insertID;
|
return insertID;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue