server-ts: Convert routes/api/notes

This commit is contained in:
Elian Doran
2024-04-06 21:55:27 +03:00
parent 37697c7db7
commit c63c7d518c
4 changed files with 55 additions and 41 deletions

View File

@@ -269,8 +269,8 @@ function transactional<T>(func: (statement: Statement) => T) {
}
}
function fillParamList(paramIds: string[], truncate = true) {
if (paramIds.length === 0) {
function fillParamList(paramIds: string[] | Set<string>, truncate = true) {
if ("length" in paramIds && paramIds.length === 0) {
return;
}