appwrite-utils-cli 0.0.264 → 0.0.265
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,8 +12,7 @@ export const createOrUpdateIndex = async (dbId, db, collectionId, index) => {
|
|
12
12
|
throw new Error(`Fulltext index can only be created on a single attribute. Index: ${index.key}`);
|
13
13
|
}
|
14
14
|
else if (index.type === "fulltext") {
|
15
|
-
|
16
|
-
index.attributes = index.attributes[0];
|
15
|
+
index.attributes = [index.attributes[0]];
|
17
16
|
}
|
18
17
|
const newIndex = await db.createIndex(dbId, collectionId, index.key, index.type, index.attributes, index.orders);
|
19
18
|
return newIndex;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "appwrite-utils-cli",
|
3
3
|
"description": "Appwrite Utility Functions to help with database management, data conversion, data import, migrations, and much more. Meant to be used as a CLI tool, I do not recommend installing this in frontend environments.",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.265",
|
5
5
|
"main": "src/main.ts",
|
6
6
|
"type": "module",
|
7
7
|
"repository": {
|
@@ -19,8 +19,7 @@ export const createOrUpdateIndex = async (
|
|
19
19
|
`Fulltext index can only be created on a single attribute. Index: ${index.key}`
|
20
20
|
);
|
21
21
|
} else if (index.type === "fulltext") {
|
22
|
-
|
23
|
-
index.attributes = index.attributes[0];
|
22
|
+
index.attributes = [index.attributes[0]];
|
24
23
|
}
|
25
24
|
const newIndex = await db.createIndex(
|
26
25
|
dbId,
|