fix a stupid bug

This commit is contained in:
undefined committed 2020-08-01 17:09:53 +08:00
1 parent e66d5a0221
commit 61c4d38521
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ export async function get(
uid: number = null,
): Promise<Pdoc> {
if (typeof pid !== 'number') {
if (!Number.isSafeInteger(parseInt(pid, 10))) pid = parseInt(pid, 10);
if (Number.isSafeInteger(parseInt(pid, 10))) pid = parseInt(pid, 10);
}
const pdoc = Number.isInteger(pid)
? await document.get(domainId, document.TYPE_PROBLEM, pid)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.11.7",
"version": "2.11.8",
"main": "dist/loader.js",
"bin": "bin/hydrooj.js",
"repository": "https://github.com/hydro-dev/Hydro.git",