Merge branch 'staging' into timed-wi

This commit is contained in:
Cohee
2024-06-24 01:07:44 +03:00
3 changed files with 11 additions and 11 deletions

View File

@@ -7,7 +7,6 @@ import { FILTER_TYPES, FilterHelper } from './filters.js';
import { getTokenCountAsync } from './tokenizers.js';
import { power_user } from './power-user.js';
import { getTagKeyForEntity } from './tags.js';
import { resolveVariable } from './variables.js';
import { debounce_timeout } from './constants.js';
import { getRegexedString, regex_placement } from './extensions/regex/engine.js';
import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
@@ -851,7 +850,7 @@ function registerWorldInfoSlashCommands() {
}
async function findBookEntryCallback(args, value) {
const file = resolveVariable(args.file);
const file = args.file;
const field = args.field || 'key';
const entries = await getEntriesFromFile(file);
@@ -895,7 +894,7 @@ function registerWorldInfoSlashCommands() {
}
async function getEntryFieldCallback(args, uid) {
const file = resolveVariable(args.file);
const file = args.file;
const field = args.field || 'content';
const entries = await getEntriesFromFile(file);
@@ -930,7 +929,7 @@ function registerWorldInfoSlashCommands() {
}
async function createEntryCallback(args, content) {
const file = resolveVariable(args.file);
const file = args.file;
const key = args.key;
const data = await loadWorldInfoData(file);
@@ -959,8 +958,8 @@ function registerWorldInfoSlashCommands() {
}
async function setEntryFieldCallback(args, value) {
const file = resolveVariable(args.file);
const uid = resolveVariable(args.uid);
const file = args.file;
const uid = args.uid;
const field = args.field || 'content';
if (value === undefined) {