chore: fix build

This commit is contained in:
2024-02-10 11:19:18 +07:00
parent 739ba63e6c
commit 35c5b5fb78
10 changed files with 136 additions and 43 deletions

View File

@@ -43,8 +43,11 @@ export class Ark {
}
}
public async get_text_events(limit: number, until?: number) {
public async get_text_events(limit: number, asOf?: number) {
try {
let until: string = undefined;
if (asOf && asOf > 0) until = asOf.toString();
const cmd: Event[] = await invoke("get_text_events", { limit, until });
return cmd;
} catch (e) {