Skip to content

Commit 9626378

Browse files
committed
fix: lint and fix cache service
Signed-off-by: Innei <tukon479@gmail.com>
1 parent 128b92c commit 9626378

File tree

68 files changed

+139
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+139
-219
lines changed

.github/workflows/api-client.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ on:
1010
- main
1111
paths:
1212
- 'packages/api-client/**'
13-
- '.github/workflows/api-client.yml'
13+
- .github/workflows/api-client.yml
1414
pull_request:
1515
branches: [master, main]
1616
paths:
1717
- 'packages/api-client/**'
18-
- '.github/workflows/api-client.yml'
18+
- .github/workflows/api-client.yml
1919

2020
jobs:
2121
build:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
tags-ignore:
44
- 'v*'
55
paths-ignore:
6-
- 'CHANGELOG.MD'
6+
- CHANGELOG.MD
77
branches: master
88
pull_request:
99
workflow_dispatch:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
name: Download release
9696
with:
9797
tag: ${{ github.ref_name }}
98-
fileName: 'release-linux.zip'
98+
fileName: release-linux.zip
9999
- name: copy file via ssh password
100100
uses: appleboy/scp-action@v0.1.7
101101
with:
@@ -104,8 +104,8 @@ jobs:
104104
password: ${{ secrets.PASSWORD }}
105105
# port: ${{ secrets.PORT }}
106106
key: ${{ secrets.KEY }}
107-
source: 'release-linux.zip'
108-
target: '/tmp/mx-core'
107+
source: release-linux.zip
108+
target: /tmp/mx-core
109109

110110
- name: Exec deploy script with SSH
111111
uses: appleboy/ssh-action@master
@@ -134,7 +134,7 @@ jobs:
134134
strategy:
135135
matrix:
136136
os: [ubuntu-latest]
137-
arch: ['amd64']
137+
arch: [amd64]
138138
steps:
139139
- name: Checkout
140140
uses: actions/checkout@v4

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
"editor.defaultFormatter": "esbenp.prettier-vscode"
1414
},
1515
"material-icon-theme.activeIconPack": "nest",
16-
"cSpell.words": [
17-
"qaqdmin"
18-
],
16+
"cSpell.words": ["qaqdmin"],
1917
"typescript.tsdk": "node_modules/typescript/lib",
2018
"yaml.schemas": {
2119
"https://json.schemastore.org/github-workflow.json": "file:///Users/xiaoxun/github/innei-repo/mx-space/mx-server/.github/workflows/build.yml"
2220
},
2321
"typescript.preferences.preferTypeOnlyAutoImports": false
24-
}
22+
}

apps/core/download-latest-admin-assets-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!env node
2-
const { appendFileSync } = require('fs')
3-
const { join } = require('path')
2+
const { appendFileSync } = require('node:fs')
3+
const { join } = require('node:path')
44
const { fetch, $ } = require('zx-cjs')
55
const {
66
dashboard: { repo, version },

apps/core/download-latest-admin-assets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!env node
2-
const { appendFileSync } = require('fs')
3-
const { join } = require('path')
2+
const { appendFileSync } = require('node:fs')
3+
const { join } = require('node:path')
44
const { fetch, $ } = require('zx-cjs')
55
const {
66
dashboard: { repo, version },

apps/core/ecosystem.dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { execSync } = require('child_process')
1+
const { execSync } = require('node:child_process')
22
const nodePath = execSync(`npm root --quiet -g`, { encoding: 'utf-8' }).split(
33
'\n',
44
)[0]

apps/core/src/app.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { IpLocation, IpRecord } from './common/decorators/ip.decorator'
2020
import { AllowAllCorsInterceptor } from './common/interceptors/allow-all-cors.interceptor'
2121
import { RedisKeys } from './constants/cache.constant'
2222
import { OptionModel } from './modules/configs/configs.model'
23-
import { CacheService } from './processors/redis/cache.service'
2423
import { RedisService } from './processors/redis/redis.service'
2524
import { getRedisKey } from './utils/redis.util'
2625

apps/core/src/bootstrap.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { performance } from 'node:perf_hooks'
33
import wcmatch from 'wildcard-match'
44
import type { FastifyCorsOptions } from '@fastify/cors'
55
import type { LogLevel } from '@nestjs/common'
6-
import type { CorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface'
76
import type { NestFastifyApplication } from '@nestjs/platform-fastify'
87

98
import { Logger } from '@innei/pretty-logger-nestjs'

apps/core/src/common/interceptors/analyze.interceptor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import * as SYSTEM from '~/constants/system.constant'
2323
import { REFLECTOR } from '~/constants/system.constant'
2424
import { AnalyzeModel } from '~/modules/analyze/analyze.model'
2525
import { OptionModel } from '~/modules/configs/configs.model'
26-
import { CacheService } from '~/processors/redis/cache.service'
2726
import { RedisService } from '~/processors/redis/redis.service'
2827
import { getNestExecutionContextRequest } from '~/transformers/get-req.transformer'
2928
import { InjectModel } from '~/transformers/model.transformer'

0 commit comments

Comments
 (0)