fix messages findOne (#342)

This commit is contained in:
an-lee
2024-02-22 22:17:46 +08:00
committed by GitHub
parent 086d4fa7bf
commit 74e061ccac
4 changed files with 22 additions and 20 deletions

View File

@@ -183,7 +183,7 @@ type EnjoyAppType = {
};
messages: {
findAll: (params: any) => Promise<MessageType[]>;
findOne: (params: any) => Promise<MessageType>;
findOne: (where: any) => Promise<MessageType>;
createInBatch: (messages: Partial<MessageType>[]) => Promise<void>;
destroy: (id: string) => Promise<void>;
createSpeech: (id: string, configuration?: any) => Promise<SpeechType>;