Update packages.

This commit is contained in:
Mike Cao 2023-09-21 01:01:58 -07:00
parent 84e13a2a10
commit b3f9dfa01a
3 changed files with 795 additions and 515 deletions

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]);