fix: Set '@typescript-eslint/return-await' rule to 'always' for FE (no-changelog) (#8373)

This commit is contained in:
Tomi Turtiainen
2024-01-18 11:28:01 +02:00
committed by GitHub
parent fc94377036
commit 1aa35b190a
67 changed files with 348 additions and 282 deletions

View File

@@ -363,23 +363,23 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
},
async getLdapConfig() {
const rootStore = useRootStore();
return getLdapConfig(rootStore.getRestApiContext);
return await getLdapConfig(rootStore.getRestApiContext);
},
async getLdapSynchronizations(pagination: { page: number }) {
const rootStore = useRootStore();
return getLdapSynchronizations(rootStore.getRestApiContext, pagination);
return await getLdapSynchronizations(rootStore.getRestApiContext, pagination);
},
async testLdapConnection() {
const rootStore = useRootStore();
return testLdapConnection(rootStore.getRestApiContext);
return await testLdapConnection(rootStore.getRestApiContext);
},
async updateLdapConfig(ldapConfig: ILdapConfig) {
const rootStore = useRootStore();
return updateLdapConfig(rootStore.getRestApiContext, ldapConfig);
return await updateLdapConfig(rootStore.getRestApiContext, ldapConfig);
},
async runLdapSync(data: IDataObject) {
const rootStore = useRootStore();
return runLdapSync(rootStore.getRestApiContext, data);
return await runLdapSync(rootStore.getRestApiContext, data);
},
setSaveDataErrorExecution(newValue: string) {
this.saveDataErrorExecution = newValue;
@@ -392,7 +392,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, {
},
async getTimezones(): Promise<IDataObject> {
const rootStore = useRootStore();
return makeRestApiRequest(rootStore.getRestApiContext, 'GET', '/options/timezones');
return await makeRestApiRequest(rootStore.getRestApiContext, 'GET', '/options/timezones');
},
},
});