Api changes

This commit is contained in:
Owen Schwartz 2024-10-19 18:47:41 -04:00
parent 682210c46f
commit 38bcbfdb8f
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;
}
}