removed dots
This commit is contained in:
parent
ddb484cac9
commit
adc466e09a
@ -80,7 +80,7 @@ export const config = new ConfigHandler(__path + '/config.json', {
|
|||||||
console.log('Base Config:');
|
console.log('Base Config:');
|
||||||
console.log(config.global);
|
console.log(config.global);
|
||||||
|
|
||||||
console.log('Add some new key to config and call save_config.');
|
console.log('Add some new key to config and call save_config');
|
||||||
config.global.NewKey = 'ThisIsANewKey!'
|
config.global.NewKey = 'ThisIsANewKey!'
|
||||||
config.save_config()
|
config.save_config()
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ function post(req: Request, res: Response) {
|
|||||||
// Handle file upload and import
|
// Handle file upload and import
|
||||||
console.log(req.files);
|
console.log(req.files);
|
||||||
if (!req.files || Object.keys(req.files).length === 0) {
|
if (!req.files || Object.keys(req.files).length === 0) {
|
||||||
return res.status(400).send('No files were uploaded.');
|
return res.status(400).send('No files were uploaded');
|
||||||
}
|
}
|
||||||
|
|
||||||
const file: UploadedFile = req.files.formFile as UploadedFile;
|
const file: UploadedFile = req.files.formFile as UploadedFile;
|
||||||
|
Loading…
Reference in New Issue
Block a user