Fixed Downloads

This commit is contained in:
Geomitron
2020-03-04 18:17:54 -05:00
parent 4ebf2db650
commit db02710b37
16 changed files with 480 additions and 396 deletions

View File

@@ -6,7 +6,7 @@ import { escape } from 'mysql'
/**
* Handles the 'song-search' event.
*/
export default class SearchHandler implements IPCInvokeHandler<'song-search'> {
class SearchHandler implements IPCInvokeHandler<'song-search'> {
event: 'song-search' = 'song-search'
/**
@@ -39,4 +39,6 @@ export default class SearchHandler implements IPCInvokeHandler<'song-search'> {
LIMIT ${20} OFFSET ${0};
` // TODO: add parameters for the limit and offset
}
}
}
export const searchHandler = new SearchHandler()