Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class IndexSchema {
} else {
// For HASH storage, path should always be null
if (path !== null && path !== undefined) {
// TODO: log a warning
console.warn(`[IndexSchema] path '${path}' will be ignored for HASH storage type; path should be null.`);
}
field.path = null;
}
Expand Down Expand Up @@ -275,7 +275,7 @@ export class IndexSchema {
*/
removeField(fieldName: string): void {
if (!Object.hasOwn(this.fields, fieldName)) {
// TODO: log a warning
console.warn(`[IndexSchema] removeField: field '${fieldName}' not found in schema. Known fields: [${Object.keys(this.fields).join(', ')}]`);
return;
}
delete this.fields[fieldName];
Expand Down