Skip to content

Commit 102bd40

Browse files
committed
fix: warn about deprecated 'record' parameter in updateResourceRecord function
1 parent 172fc0e commit 102bd40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

adminforth/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,11 @@ class AdminForth implements IAdminForth {
602602
if (err) {
603603
return { error: err };
604604
}
605+
606+
if (record) {
607+
console.warn(`updateResourceRecord function received 'record' param which is deprecated and will be removed in future version, please use 'updates' instead.`);
608+
}
609+
605610
// remove editReadonly columns from record
606611
for (const column of resource.columns.filter((col) => col.editReadonly)) {
607612
if (column.name in dataToUse)

0 commit comments

Comments
 (0)