trying esm modules

This commit is contained in:
Daniel
2022-05-12 01:44:09 +02:00
parent ee4dcf116c
commit 9370d0544e
6 changed files with 10 additions and 11 deletions

View File

@@ -4,7 +4,7 @@
* currencies, if not obtained through @capire/common.
*/
module.exports = async (db)=>{
export default async (db)=>{
const has_common = db.model.definitions['sap.common.Currencies'].elements.numcode
if (has_common) return