fix: implement i64 serialization for JavaScript compatibility, fixing avatar URL display

This commit is contained in:
2026-01-29 15:50:50 -06:00
parent e880126281
commit e41b970d6e
3 changed files with 44 additions and 3 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ export class BannerApiClient {
return this.request<User[]>("/admin/users");
}
async setUserAdmin(discordId: bigint, isAdmin: boolean): Promise<User> {
async setUserAdmin(discordId: string, isAdmin: boolean): Promise<User> {
const response = await this.fetchFn(`${this.baseUrl}/admin/users/${discordId}/admin`, {
method: "PUT",
headers: { "Content-Type": "application/json" },
+1 -1
View File
@@ -6,7 +6,7 @@ import { Shield, ShieldOff } from "@lucide/svelte";
let users = $state<User[]>([]);
let error = $state<string | null>(null);
let updating = $state<bigint | null>(null);
let updating = $state<string | null>(null);
onMount(async () => {
try {