mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-07-09 06:25:08 +00:00
Add database
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import express from 'express';
|
||||
import path from 'path';
|
||||
import * as fileSystem from 'fs';
|
||||
import { LoggerColors } from '../../helpers/logger-colors';
|
||||
import { LoggerColors } from '../../helpers/loggerColors';
|
||||
import { DeleteSoundFromDatabase } from '../data/deleteSound';
|
||||
|
||||
/**
|
||||
* Deletes a file from the sounds folder by filename
|
||||
@@ -16,4 +17,6 @@ export function DeleteSoundFile(response: express.Response, request: express.Req
|
||||
}
|
||||
response.send('File deleted successfully.');
|
||||
});
|
||||
|
||||
DeleteSoundFromDatabase(request.params.filename);
|
||||
}
|
||||
Reference in New Issue
Block a user