mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-07 14:57:27 +02:00
added :changed request body modifier
This commit is contained in:
1 parent
2525f29c1c
commit
6e739fd33d
37 files changed
+170
-67
No files matched your search
@@ -1947,13 +1947,14 @@ export default class CommonHelper {
|
||||
for (const key of keys) {
|
||||
result.push(key);
|
||||
|
||||
// add ":isset" modifier to non-base keys
|
||||
// add ":isset"/":changed" modifier to non-base keys
|
||||
const parts = key.split(".");
|
||||
if (
|
||||
parts.length === 3 &&
|
||||
// doesn't contain another modifier
|
||||
parts[2].indexOf(":") === -1
|
||||
) {
|
||||
result.push(key + ":changed");
|
||||
result.push(key + ":isset");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user