mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix new chats with v2 imports
This commit is contained in:
@@ -761,7 +761,7 @@ function convertToV2(char) {
|
|||||||
tags: char.tags,
|
tags: char.tags,
|
||||||
});
|
});
|
||||||
|
|
||||||
result.chat = char.chat;
|
result.chat = char.chat ?? humanizedISO8601DateTime();
|
||||||
result.create_date = char.create_date;
|
result.create_date = char.create_date;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -820,6 +820,8 @@ function readFromV2(char) {
|
|||||||
char[charField] = v2Value;
|
char[charField] = v2Value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
char['chat'] = char['chat'] ?? humanizedISO8601DateTime();
|
||||||
|
|
||||||
return char;
|
return char;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user