Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michavie committed Jan 9, 2024
1 parent b6a19a9 commit ca16568
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
28 changes: 14 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ module.exports = {
jest: true,
},
rules: {
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unused-vars": ["off"],
"@typescript-eslint/ban-ts-comment": ["off"],
"@typescript-eslint/no-empty-function": ["off"],
"@typescript-eslint/ban-types": ["off"],
"@typescript-eslint/no-var-requires": ["off"],
"@typescript-eslint/no-inferrable-types": ["off"],
"require-await": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"max-len": ["off"],
"semi": ["error"],
"comma-dangle": ["error", "always-multiline"],
"eol-last": ["error"],
'@typescript-eslint/no-explicit-any': ['off'],
'@typescript-eslint/no-unused-vars': ['off'],
'@typescript-eslint/ban-ts-comment': ['off'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/ban-types': ['off'],
'@typescript-eslint/no-var-requires': ['off'],
'@typescript-eslint/no-inferrable-types': ['off'],
'require-await': ['off'],
'@typescript-eslint/no-floating-promises': ['error'],
'max-len': ['off'],
semi: ['off'],
'comma-dangle': ['error', 'always-multiline'],
'eol-last': ['error'],
},
ignorePatterns: ['.eslintrc.js'],
};
}
4 changes: 2 additions & 2 deletions apps/api/src/endpoints/collections/collection.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class CollectionsController {
// TODO: @UseGuards(NativeAuthGuard)
@Get('/collections')
@ApiResponse({ status: 200 })
async index(@Param('collection') key: string): Promise<unknown> {
index(@Param('collection') key: string) {
return JSON.stringify({
collection: key,
})
Expand All @@ -24,7 +24,7 @@ export class CollectionsController {
@Get('/collections/:collection')
@ApiResponse({ status: 200 })
@ApiResponse({ status: 404 })
async show(@Param('collection') key: string, @Headers('app-id') appId: number): Promise<unknown> {
async show(@Param('collection') key: string, @Headers('app-id') appId: number) {
console.log('key', key)
const app = await this.appService.getAppById(+appId)

Expand Down
2 changes: 1 addition & 1 deletion libs/common/src/app/app.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AppService {
const apps = await this.contractService.getApps()

const cacheInfo = CacheInfo.Apps()
this.cacheService.set(cacheInfo.key, apps, cacheInfo.ttl)
await this.cacheService.set(cacheInfo.key, apps, cacheInfo.ttl)

this.logger.log(`Synced ${apps.length} apps`)
}
Expand Down
2 changes: 1 addition & 1 deletion libs/common/src/delegation/delegation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class DelegationService {
const delegations = await this.contractService.getAppDelegations(app.id)

const cacheInfo = CacheInfo.AppDelegations(app)
this.cacheService.set(cacheInfo.key, delegations, cacheInfo.ttl)
await this.cacheService.set(cacheInfo.key, delegations, cacheInfo.ttl)

this.logger.log(`Synced ${delegations.length} delegations for app ${app.id}`)
}
Expand Down

0 comments on commit ca16568

Please sign in to comment.