feat: move popular tanks to cron job

This commit is contained in:
tresabhi committed 2025-04-18 23:57:04 -05:00
1 parent ff9ec55da6
commit 365c68aa4d
12 files changed
+318 -45

No files matched your search

+1
View File
@@ -2,6 +2,7 @@ import { MessageFns } from '../protos';
export async function fetchPB<Type>(url: string, message: MessageFns<Type>) {
const response = await fetch(url);
const buffer = await response.arrayBuffer();
const array = new Uint8Array(buffer);
return message.decode(array);