mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 08:37:13 +01:00
Changed kafka method signature.
This commit is contained in:
parent
26462cffbc
commit
72b3b6158a
4 changed files with 6 additions and 6 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue