Api changes

This commit is contained in:
Owen Schwartz 2024-10-19 18:47:41 -04:00
parent 94da55450e
commit 0fa3382cda
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
20 changed files with 319 additions and 154 deletions

8
server/utils/stoi.ts Normal file
View file

@ -0,0 +1,8 @@
export default function stoi(val: any) {
if (typeof val === "string") {
return parseInt(val)
}
else {
return val;
}
}