Skip to content

Commit

Permalink
fix(controller): fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
NuttyShrimp committed Nov 18, 2024
1 parent cda5a54 commit d2fce18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/src/classes/Controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class Controller<T extends Record<keyof T, BaseSubject<keyof T & string>>
async getContainerPermissionList(containerUrl: string): Promise<ResourcePermissions<T[keyof T]>[]> {
const configs: SubjectConfig<T>[] = Object.values(this.subjectConfigs);

const index = await this.index.getCurrentIndex();
const index = await this.index.getCurrent();
const resourcesToSkip = index.items.filter(i => {
if (!i.resource.includes(containerUrl)) {
return false;
Expand Down Expand Up @@ -263,7 +263,7 @@ export class Controller<T extends Record<keyof T, BaseSubject<keyof T & string>>
}
}));

await this.index.saveToRemoteIndex();
await this.index.saveToRemote();

return await index.items.reduce<Promise<ResourcePermissions<T[keyof T]>[]>>(async (arr, v) => {
const resourcePath = v.resource.replace(containerUrl, "");
Expand Down

0 comments on commit d2fce18

Please sign in to comment.