mirror of
https://git.waldn.net/git/knotteye/satyr.git
synced 2025-06-17 05:03:52 +00:00
Fix /api/:user/config not returning all info for an authorized user.
This commit is contained in:
parent
db8d9dfe72
commit
df51432a8f
@ -1,4 +1,4 @@
|
|||||||
import * as db from "./database"
|
import * as db from "./database";
|
||||||
import { config } from "./config";
|
import { config } from "./config";
|
||||||
import {unlink} from "fs";
|
import {unlink} from "fs";
|
||||||
|
|
||||||
|
@ -338,12 +338,12 @@ async function initAPI() {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
api.getConfig(req.params.user).then(re => {
|
else api.getConfig(req.params.user).then(re => {
|
||||||
res.send(JSON.stringify(re));
|
res.send(JSON.stringify(re));
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
});
|
});
|
||||||
api.getConfig(req.params.user).then(r => {
|
else api.getConfig(req.params.user).then(r => {
|
||||||
res.send(JSON.stringify(r));
|
res.send(JSON.stringify(r));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user