@tinycloud/sdk-core 2.4.0-beta.16 → 2.4.0-beta.17

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.
package/dist/index.cjs CHANGED
@@ -3324,6 +3324,13 @@ var AccountService = class {
3324
3324
  }
3325
3325
  };
3326
3326
  this.index = {
3327
+ ensure: async () => {
3328
+ const dbResult = this.accountDb();
3329
+ if (!dbResult.ok) return dbResult;
3330
+ const schema = await this.ensureAccountIndex(dbResult.data);
3331
+ if (!schema.ok) return schema;
3332
+ return (0, import_sdk_services5.ok)({ database: ACCOUNT_INDEX_DB });
3333
+ },
3327
3334
  rebuild: async () => {
3328
3335
  const dbResult = this.accountDb();
3329
3336
  if (!dbResult.ok) return dbResult;