You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Could not find 'admin' export in ${configFileName}. Please ensure your config file exports the AdminForth instance like: 'export const admin = new AdminForth({...});'`);
36
46
}
@@ -53,7 +63,7 @@ export async function loadAdminForthConfig() {
53
63
returnconfig;
54
64
55
65
}catch(error){
56
-
console.error(chalk.red(`\nError loading or parsing configuration file: ${configPath}`));
66
+
console.error(chalk.red(`\nError loading or parsing configuration file: ${configPath}, error: ${error}`));
Copy file name to clipboardExpand all lines: adminforth/documentation/docs/tutorial/03-Customization/03-virtualColumns.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,10 +142,10 @@ This way, when admin selects, for example, "Luxury" option for "Apartment Type"
142
142
143
143
### Custom SQL queries with `insecureRawSQL`
144
144
145
-
Rarely the sec of Filters supported by AdminForth is not enough for your needs.
145
+
Rarely the set of Filters supported by AdminForth is not enough for your needs.
146
146
In this case you can use `insecureRawSQL` to write your own part of where clause.
147
147
148
-
However the vital concern that the SQL passed to DB as is, so if you substitute any user inputs it will not be escaped and can lead to SQL injection. To miticate the issue we recommend using `sqlstring` package which will escape the inputs for you.
148
+
However the vital concern that the SQL passed to DB as is, so if you substitute any user inputs it will not be escaped and can lead to SQL injection. To mitigate the issue we recommend using `sqlstring` package which will escape the inputs for you.
149
149
150
150
```bash
151
151
npm i sqlstring
@@ -163,7 +163,7 @@ import sqlstring from 'sqlstring';
163
163
if (filter.field==='some_json_b_field') {
164
164
return {
165
165
// check if some_json_b_field->'$.some_field' is equal to filter.value
0 commit comments