Skip to content

Commit e7f52fe

Browse files
fixed revision
1 parent 4ecaafd commit e7f52fe

File tree

2 files changed

+2
-1
lines changed
  • packages/rs-drive/src/drive/contract
    • insert/add_description/v0
    • update/update_description/v0

2 files changed

+2
-1
lines changed

packages/rs-drive/src/drive/contract/insert/add_description/v0/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Drive {
202202
id: document_id,
203203
owner_id,
204204
properties,
205-
revision: None,
205+
revision: Some(1),
206206
created_at: Some(block_info.time_ms),
207207
updated_at: None,
208208
transferred_at: None,

packages/rs-drive/src/drive/contract/update/update_description/v0/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ impl Drive {
155155
let mut new_document = existing_documents.remove(0);
156156
new_document.set("description", Value::Text(description.clone()));
157157
new_document.set_updated_at(Some(block_info.time_ms));
158+
new_document.bump_revision();
158159

159160
let info = DocumentAndContractInfo {
160161
owned_document_info: OwnedDocumentInfo {

0 commit comments

Comments
 (0)