Technically, parseInt needs a string as parameter
This commit is contained in:
parent
e8e5d8829e
commit
4c123b4a0a
|
|
@ -23,7 +23,7 @@ const SOURCE_DIR = path.join(HOMEBREW_DIR, project);
|
|||
const importSource = importSourceFactory(SOURCE_DIR);
|
||||
|
||||
const meta = importSource("meta.json");
|
||||
meta._meta.dateLastModified = parseInt(Date.now()/1000);
|
||||
meta._meta.dateLastModified = parseInt((Date.now()/1000).toString());
|
||||
|
||||
const sources = fs.readdirSync(SOURCE_DIR, {
|
||||
withFileTypes: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue