mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
refactor: small type improvements (#759)
This commit is contained in:
@@ -35,7 +35,7 @@ const populateDb = () => {
|
||||
* @param adapterToUse
|
||||
* @return {Promise<number|*>}
|
||||
*/
|
||||
const parseDb = async (fileToRead, adapterToUse) => {
|
||||
const parseDb = async (fileToRead: string, adapterToUse: Low<DatabaseModel>) => {
|
||||
if (validateFile(fileToRead)) {
|
||||
await adapterToUse.read();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user