diff --git a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp index 32764840..3db89501 100644 --- a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp +++ b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp @@ -881,6 +881,7 @@ auto encrypt_provider::read_file_bytes(const std::string &api_path, file_data["original_file_size"] = file_size; file_data["iv_list"] = iv_list; auto ins_res = db::db_insert{*db_, file_table} + .or_replace() .column_value("source_path", source_path) .column_value("data", file_data.dump()) .go();