Logo
Explore Help
Sign In
blsmedia/bot
2
0
Fork 0
You've already forked bot
Code Issues Activity
Files
b775d111a67a1c3fdfbcae45e7e4276dc03d2a2d
bot/packages/forge/blocks/nocodb/helpers/parseSearchParams.ts

9 lines
278 B
TypeScript
Raw Normal View History

✨ Add NocoDB block (#1365) #970 #997 Fully integrate NocoDB. Added all API Functions: - List Table Records - Create Table Records - Update Table Records - Delete Table Records - Read Table Record - Count Table Records - List Linked Records - Link Records - Unlink Records Optional Todo: - Save responses of non-get requests in a variable (error validation try-catch is added and logged so i do not think so it is much needed) You are free to implement any extra validation/function :D --------- Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
2024-05-27 12:46:42 +04:00
export const parseSearchParams = (
records: Record<string, any>
): Record<string, string> => {
return Object.entries(records).reduce((acc, [key, value]) => {
if (value === null || value === undefined) return acc
return { ...acc, [key]: value.toString() }
}, {})
}
Reference in New Issue Copy Permalink
Powered by BLS media Version: 1.25.2 Page: 29ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API