fix: Set '@typescript-eslint/return-await' rule to 'always' for node code (no-changelog) (#8363)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -23,7 +23,7 @@ export class VariablesController {
|
||||
@Get('/')
|
||||
@RequireGlobalScope('variable:list')
|
||||
async getVariables() {
|
||||
return this.variablesService.getAllCached();
|
||||
return await this.variablesService.getAllCached();
|
||||
}
|
||||
|
||||
@Post('/')
|
||||
|
||||
@@ -18,7 +18,7 @@ export class VariablesService {
|
||||
async getAllCached(): Promise<Variables[]> {
|
||||
const variables = await this.cacheService.get('variables', {
|
||||
async refreshFn() {
|
||||
return Container.get(VariablesService).findAll();
|
||||
return await Container.get(VariablesService).findAll();
|
||||
},
|
||||
});
|
||||
return (variables as Array<Partial<Variables>>).map((v) => this.variablesRepository.create(v));
|
||||
@@ -49,7 +49,7 @@ export class VariablesService {
|
||||
}
|
||||
|
||||
async findAll(): Promise<Variables[]> {
|
||||
return this.variablesRepository.find();
|
||||
return await this.variablesRepository.find();
|
||||
}
|
||||
|
||||
validateVariable(variable: Omit<Variables, 'id'>): void {
|
||||
|
||||
Reference in New Issue
Block a user