-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Elin Angelow
committed
Dec 19, 2023
1 parent
fdbf17d
commit 37653b3
Showing
4 changed files
with
31 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
const {join} = require('path'); | ||
module.exports = { | ||
types: async(link) => link.sql.file(join(__dirname, 'types.sql')), | ||
methods: async(link) => link.sql.file(join(__dirname, 'methods.sql')) | ||
}; | ||
const {readFile} = require('node:fs/promises'); | ||
|
||
module.exports = async() => ({ | ||
types: (await readFile(join(__dirname, 'types.sql'))).toString('utf8'), | ||
methods: (await readFile(join(__dirname, 'methods.sql'))).toString('utf8') | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters