Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Fix issues with the address store SQL
cloudhead committed 2 years ago
commit aa13f57e7dd96887d6f53f278f2d110076951b69
parent bf64fde8a143e0a419f7efbed72389e3dbe89f04
1 file changed +2 -2
modified radicle/src/node/address/store.rs
@@ -218,7 +218,7 @@ impl Store for Book {
        timestamp: Timestamp,
    ) -> Result<bool, Error> {
        let mut stmt = self.db.prepare(
-
            "INSERT INTO repo-sync-status (repo, node, head, timestamp)
+
            "INSERT INTO `repo-sync-status` (repo, node, head, timestamp)
             VALUES (?1, ?2, ?3, ?4)
             ON CONFLICT DO UPDATE
             SET head = ?3, timestamp = ?4
@@ -227,7 +227,7 @@ impl Store for Book {
        stmt.bind((1, rid))?;
        stmt.bind((2, nid))?;
        stmt.bind((3, at.to_string().as_str()))?;
-
        stmt.bind((3, timestamp as i64))?;
+
        stmt.bind((4, timestamp as i64))?;
        stmt.next()?;

        Ok(self.db.change_count() > 0)