fix: resolve TypeScript and lint issues
- Fix proxy routes to use resolveImagerBase instead of removed resolveUpstreamBase - Fix avatarImageUrl type signature to use AvatarOptions - Run biome formatter
This commit is contained in:
1 parent
fc7e6ca248
commit
7a2c0fd4d4
19 files changed
+86
-164
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import { eq } from "drizzle-orm";
|
||||
import { WebsiteSetting } from "@/db/schema";
|
||||
import { db } from "./src/lib/db";
|
||||
|
||||
async function main() {
|
||||
const result = await db
|
||||
.select()
|
||||
.from(WebsiteSetting)
|
||||
.where(eq(WebsiteSetting.key, "habbo_imaging_url"));
|
||||
console.log("Current:", result);
|
||||
|
||||
if (result[0]?.value !== "/imaging") {
|
||||
await db
|
||||
.update(WebsiteSetting)
|
||||
.set({ value: "/imaging" })
|
||||
.where(eq(WebsiteSetting.key, "habbo_imaging_url"));
|
||||
console.log("Updated to /imaging");
|
||||
} else {
|
||||
console.log("Already correct");
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
main().catch((e) => {
|
||||
console.error(e);
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in new issue
Block a user