diff options
author | 2020-12-17 09:38:13 +0300 | |
---|---|---|
committer | 2020-12-17 09:38:13 +0300 | |
commit | d2427c7d3c3a1e877e99a724106b8d01d356e84c (patch) | |
tree | cb35783fb39c8a96c834c6835054bca2e3a2a159 /SCHEMA.md | |
parent | Adds Timestamp Field (diff) |
Fixes DB Timestamp on Return
As pointed out by @ks129, fetching the responses would cause an error in
the timestamp, as the validation was returning the current time at
fetching, instead of the stored value.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'SCHEMA.md')
-rw-r--r-- | SCHEMA.md | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -127,13 +127,14 @@ Textareas require no additional configuration. ## Form response -| Field | Type | Description | -| ---------- | ---------------------------------------------------- | --------------------------------------------------------------------------- | -| `_id`/`id` | MongoDB ObjectID | Random identifier used for the response | -| `user` | Optional [user details object](#user-details-object) | An object describing the user that submitted if the form is not anonymous | -| `antispam` | Optional [anti spam object](#anti-spam-object) | An object containing information about the anti-spam on the form submission | -| `response` | Object | Object containing question IDs mapping to the users answer | -| `form_id` | String | ID of the form that the user is submitting to | +| Field | Type | Description | +| ----------- | ---------------------------------------------------- | --------------------------------------------------------------------------- | +| `_id`/`id` | MongoDB ObjectID | Random identifier used for the response | +| `user` | Optional [user details object](#user-details-object) | An object describing the user that submitted if the form is not anonymous | +| `antispam` | Optional [anti spam object](#anti-spam-object) | An object containing information about the anti-spam on the form submission | +| `response` | Object | Object containing question IDs mapping to the users answer | +| `form_id` | String | ID of the form that the user is submitting to | +| `timestamp` | String | ISO formatted string of submission time. | ### User details object |