Skip to content

Commit

Permalink
fix updateBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
prostgles committed Nov 30, 2024
1 parent cd434b4 commit 92ae32c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/Prostgles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ export class Prostgles {

return {
publishValidationError,
tableSchemaErrors,
clientSchema,
userData
}
Expand Down
6 changes: 4 additions & 2 deletions lib/runClientRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ export const runClientRequest = async function(this: Prostgles, args: Args){
*/
const tableCommand = tableHandler[command] satisfies undefined | TableMethodFunctionWithRulesAndLocalParams;
if(!tableCommand) throw `Invalid or disallowed command provided: ${command}`;
const result = await (tableCommand as TableMethodFunctionWithRulesAndLocalParams)(param1, param2, param3, validRules, localParams);
return result;
// const result = await (tableCommand as TableMethodFunctionWithRulesAndLocalParams)(param1, param2, param3, validRules, localParams);
// return result;
//@ts-ignore
return this.dbo[tableName][command](param1, param2, param3, validRules, localParams);
}

export const clientCanRunSqlRequest = async function(this: Prostgles, args: ReqInfo){
Expand Down

0 comments on commit 92ae32c

Please sign in to comment.