Skip to content

Commit d62d6ae

Browse files
committed
chore: reduce diff
1 parent 4961476 commit d62d6ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/services/image.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { globalContext } from './global-state'
1+
import { globalCtx } from './global-state'
22
import { Readable } from 'stream'
33
import { isString, merge, pick } from 'lodash-es'
44
import httpClient from '@/utils/http-client'
@@ -19,7 +19,7 @@ class ImageService {
1919
const fd = new (await import('form-data')).default()
2020
fd.append('image', file, { filename: finalName, contentType: mimeType })
2121

22-
const response = await httpClient.post(`${globalContext.config.apiBaseUrl}/api/posts/body/images`, {
22+
const response = await httpClient.post(`${globalCtx.config.apiBaseUrl}/api/posts/body/images`, {
2323
body: fd,
2424
})
2525

0 commit comments

Comments
 (0)