mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Add admin pagination and update configs
This commit is contained in:
1 parent
b60b72a289
commit
aff0bc0888
21 files changed
+1793
-481
No files matched your search
@@ -86,10 +86,10 @@ export const auditedSupabase = {
|
||||
/**
|
||||
* Update a single record with audit logging
|
||||
*/
|
||||
async update<T extends { id: string }>(
|
||||
async update<T extends object = Record<string, unknown>>(
|
||||
table: string,
|
||||
id: string,
|
||||
updates: Partial<T>
|
||||
updates: Partial<T> | Record<string, unknown>
|
||||
): Promise<SingleResult<T>> {
|
||||
// Fetch old values before update
|
||||
let oldValues: Record<string, unknown> | null = null;
|
||||
|
||||
Reference in new issue
Block a user