Update packages.

This commit is contained in:
Mike Cao committed 2023-09-21 01:01:58 -07:00
1 parent 84e13a2a10
commit b3f9dfa01a
3 files changed
+795 -515

No files matched your search

+1 -1
View File
@@ -161,7 +161,7 @@ async function rawQuery(sql: string, data: object): Promise<any> {
return Promise.reject(new Error('Unknown database.'));
}
const query = sql?.replaceAll(/\{\{\s*(\w+)(::\w+)?\s*\}\}/g, (...args) => {
const query = sql?.replaceAll(/\{\{\s*(\w+)(::\w+)?\s*}}/g, (...args) => {
const [, name, type] = args;
params.push(data[name]);