mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Fix folder upsert
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::models::HttpRequestIden::{
|
|||||||
Authentication, AuthenticationType, Body, BodyType, CreatedAt, Description, FolderId, Headers,
|
Authentication, AuthenticationType, Body, BodyType, CreatedAt, Description, FolderId, Headers,
|
||||||
Method, Name, SortPriority, UpdatedAt, Url, UrlParameters, WorkspaceId,
|
Method, Name, SortPriority, UpdatedAt, Url, UrlParameters, WorkspaceId,
|
||||||
};
|
};
|
||||||
use crate::queries_legacy::{generate_model_id, UpdateSource};
|
use crate::queries_legacy::UpdateSource;
|
||||||
use chrono::{NaiveDateTime, Utc};
|
use chrono::{NaiveDateTime, Utc};
|
||||||
use rusqlite::Row;
|
use rusqlite::Row;
|
||||||
use sea_query::{enum_def, IntoIden, IntoTableRef, SimpleExpr};
|
use sea_query::{enum_def, IntoIden, IntoTableRef, SimpleExpr};
|
||||||
@@ -556,7 +556,7 @@ impl UpsertModelInfo for Folder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_id(&self) -> String {
|
fn get_id(&self) -> String {
|
||||||
generate_model_id(ModelType::TypeFolder)
|
self.id.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn insert_values(
|
fn insert_values(
|
||||||
|
|||||||
Reference in New Issue
Block a user