Fix /api/:user/config not returning all info for an authorized user.

merge-requests/15/head
knotteye 2020-07-30 01:14:33 -05:00
parent db8d9dfe72
commit df51432a8f
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
import * as db from "./database"
import * as db from "./database";
import { config } from "./config";
import {unlink} from "fs";

View File

@ -338,12 +338,12 @@ async function initAPI() {
});
return;
}
api.getConfig(req.params.user).then(re => {
else api.getConfig(req.params.user).then(re => {
res.send(JSON.stringify(re));
});
return;
});
api.getConfig(req.params.user).then(r => {
else api.getConfig(req.params.user).then(r => {
res.send(JSON.stringify(r));
});
});