mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-04-23 03:55:40 -04:00
fix swapped record on 6->7 upgrade
This commit is contained in:
parent
08cef6e790
commit
7b86db3c03
@ -314,9 +314,9 @@ fn copy_streams(tx: &rusqlite::Transaction) -> Result<(), Error> {
|
|||||||
let cum_runs: i64 = row.get(10)?;
|
let cum_runs: i64 = row.get(10)?;
|
||||||
let config = crate::json::StreamConfig {
|
let config = crate::json::StreamConfig {
|
||||||
mode: (if record {
|
mode: (if record {
|
||||||
""
|
|
||||||
} else {
|
|
||||||
crate::json::STREAM_MODE_RECORD
|
crate::json::STREAM_MODE_RECORD
|
||||||
|
} else {
|
||||||
|
""
|
||||||
})
|
})
|
||||||
.to_owned(),
|
.to_owned(),
|
||||||
url: Some(Url::parse(&rtsp_url)?),
|
url: Some(Url::parse(&rtsp_url)?),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user