Updates
This commit is contained in:
@@ -23,6 +23,7 @@ type Param<T extends { [k: string]: any } = any> = {
|
||||
identifierColumnName: keyof T;
|
||||
identifierValue: string | number;
|
||||
forceLocal?: boolean;
|
||||
debug?: boolean;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -42,6 +43,7 @@ export default async function updateDbEntry<
|
||||
encryptionKey,
|
||||
encryptionSalt,
|
||||
forceLocal,
|
||||
debug,
|
||||
}: Param<T>): Promise<APIResponseObject<PostInsertReturn>> {
|
||||
/**
|
||||
* Check if data is valid
|
||||
@@ -192,5 +194,6 @@ export default async function updateDbEntry<
|
||||
sql: query,
|
||||
params: updateValues,
|
||||
},
|
||||
debug: debug ? { data, newData } : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user