|
@@ -27,10 +27,12 @@ impl Handler for Update {
|
|
async fn handle(self, ledger: &Context) -> Result<Self::Ok, Self::Err> {
|
|
async fn handle(self, ledger: &Context) -> Result<Self::Ok, Self::Err> {
|
|
let id = self.id;
|
|
let id = self.id;
|
|
let memo = self.operation.memo;
|
|
let memo = self.operation.memo;
|
|
|
|
+ let update_token = self.operation.update_token;
|
|
|
|
+
|
|
let id = if let Some(status) = self.operation.status {
|
|
let id = if let Some(status) = self.operation.status {
|
|
let transaction = ledger
|
|
let transaction = ledger
|
|
.ledger
|
|
.ledger
|
|
- .change_status(id, status, memo.clone(), None)
|
|
|
|
|
|
+ .change_status(id, status, memo.clone(), update_token.clone())
|
|
.await?;
|
|
.await?;
|
|
transaction.revision_id
|
|
transaction.revision_id
|
|
} else {
|
|
} else {
|
|
@@ -38,7 +40,7 @@ impl Handler for Update {
|
|
};
|
|
};
|
|
|
|
|
|
let id = if let Some(tags) = self.operation.tags {
|
|
let id = if let Some(tags) = self.operation.tags {
|
|
- let transaction = ledger.ledger.set_tags(id, tags, memo, None).await?;
|
|
|
|
|
|
+ let transaction = ledger.ledger.set_tags(id, tags, memo, update_token).await?;
|
|
transaction.revision_id
|
|
transaction.revision_id
|
|
} else {
|
|
} else {
|
|
id
|
|
id
|