Moved update into action module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
use crate::{
|
||||
action::{Action, CalcValue, Calculation, Delete, FieldType, Operand, Query},
|
||||
action::{Action, CalcValue, Calculation, Delete, FieldType, Operand, Query, Update},
|
||||
document::{
|
||||
clock::Clock,
|
||||
create::IndexType,
|
||||
definition::{DocDef, DocFuncType},
|
||||
},
|
||||
message::wrapper::{Message, Update},
|
||||
message::wrapper::Message,
|
||||
name::{Name, NameType},
|
||||
queue::{
|
||||
data_director::{Include, Path, RegMsg, Register},
|
||||
@@ -40,7 +40,7 @@ impl Session {
|
||||
docdef.set_default(&name_expire, calc.clone()).unwrap();
|
||||
docdef.add_index(&name_expire, IndexType::Index).unwrap();
|
||||
|
||||
let mut update = Update::new(Query::internal());
|
||||
let mut update = Update::new(Session::doc_names()[0].clone());
|
||||
update
|
||||
.get_values_mut()
|
||||
.add_field(name_expire.clone(), calc.clone());
|
||||
|
||||
Reference in New Issue
Block a user