Changed kafka method signature.

This commit is contained in:
Mike Cao 2024-07-05 02:29:12 -07:00
parent 26462cffbc
commit 72b3b6158a
4 changed files with 6 additions and 6 deletions

View file

@ -61,8 +61,8 @@ function getDateFormat(date: Date, format?: string): string {
}
async function sendMessage(
message: { [key: string]: string | number },
topic: string,
message: { [key: string]: string | number },
): Promise<RecordMetadata[]> {
await connect();
@ -77,7 +77,7 @@ async function sendMessage(
});
}
async function sendMessages(messages: { [key: string]: string | number }[], topic: string) {
async function sendMessages(topic: string, messages: { [key: string]: string | number }[]) {
await connect();
await producer.send({