updated go deps and loaded auth collection fields for autocomplete

This commit is contained in:
Gani Georgiev
2022-11-04 15:55:25 +02:00
parent cb6ffc1e7b
commit 6115fb3874
32 changed files with 61 additions and 38 deletions
@@ -227,12 +227,21 @@
result.push("@request.auth.id");
result.push("@request.auth.collectionId");
result.push("@request.auth.collectionName");
result.push("@request.auth.verified");
result.push("@request.auth.username");
result.push("@request.auth.email");
result.push("@request.auth.emailVisibility");
result.push("@request.auth.verified");
result.push("@request.auth.created");
result.push("@request.auth.updated");
// load auth collection fields
const authCollections = mergedCollections.filter((collection) => collection.isAuth);
for (const collection of authCollections) {
const authKeys = getCollectionFieldKeys(collection.id, "@request.auth.");
for (const k of authKeys) {
CommonHelper.pushUnique(result, k);
}
}
}
// add @collections.* keys