mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Combine created and added into date
This commit is contained in:
@ -867,9 +867,8 @@ impl IndexScheduler {
|
||||
/// Create a new index without any associated task.
|
||||
pub fn create_raw_index(&self, name: &str) -> Result<Index> {
|
||||
let wtxn = self.env.write_txn()?;
|
||||
let created_at = Some(time::OffsetDateTime::now_utc());
|
||||
let updated_at = Some(time::OffsetDateTime::now_utc());
|
||||
let index = self.index_mapper.create_index(wtxn, name, created_at, updated_at)?;
|
||||
let date = Some(( time::OffsetDateTime::now_utc(), time::OffsetDateTime::now_utc() ));
|
||||
let index = self.index_mapper.create_index(wtxn, name, date)?;
|
||||
|
||||
Ok(index)
|
||||
}
|
||||
|
Reference in New Issue
Block a user