mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix saveChat positional argument migration
This commit is contained in:
@ -6757,7 +6757,7 @@ export function saveChatDebounced() {
|
|||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
*/
|
*/
|
||||||
export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) {
|
export async function saveChat({ chatName, withMetadata, mesId, force = false } = {}) {
|
||||||
if (arguments.length > 1 && typeof arguments[0] !== 'object') {
|
if (arguments.length > 0 && typeof arguments[0] !== 'object') {
|
||||||
console.trace('saveChat called with positional arguments. Please use an object instead.');
|
console.trace('saveChat called with positional arguments. Please use an object instead.');
|
||||||
[chatName, withMetadata, mesId, force] = arguments;
|
[chatName, withMetadata, mesId, force] = arguments;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user