Skip to content

Commit 99599cc

Browse files
committed
fix: fix imports in media mixin
Correct the NTV2RichMedia import path casing and remove the unused readFile import from fs/promises. This ensures the helper module resolves on case-sensitive filesystems and cleans up an unused import; no functional behavior changes.
1 parent 688e177 commit 99599cc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/ntqqapi/native/pmhq/mixins/media.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { selfInfo } from '@/common/globalVars'
33
import { InferProtoModelInput } from '@saltify/typeproto'
44
import type { PMHQBase } from '../base'
55
import { calculateTriSha1, getMd5BufferFromFile, getSha1BufferFromFile, readAndHash10M, uint32ToIPV4Addr } from '@/common/utils'
6-
import { NTV2RichMedia } from '@/ntqqapi/helper/ntV2RichMedia'
6+
import { NTV2RichMedia } from '@/ntqqapi/helper/ntv2RichMedia'
77
import { ChatType } from '@/ntqqapi/types'
8-
import { readFile, stat } from 'fs/promises'
8+
import { stat } from 'fs/promises'
99

1010
export function MediaMixin<T extends new (...args: any[]) => PMHQBase>(Base: T) {
1111
return class extends Base {

0 commit comments

Comments
 (0)