-
Notifications
You must be signed in to change notification settings - Fork 148
Add AddCreatedAt Ruby function #299
Add AddCreatedAt Ruby function #299
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rafaeelaudibert please add screenshots of a successful execution from the Appwrite console along with the logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add screenshots of the logs from a successful execution using the Appwrite console and address the remaining comments.
|
||
``` | ||
. | ||
├── Gemfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing the .appwrite
folder in the structure
- Create a tarfile | ||
|
||
```bash | ||
$ tar -zcvf ../add-created-at.tar.gz . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ tar -zcvf ../add-created-at.tar.gz . | |
$ cd .. | |
$ tar -zcvf ../add-created-at.tar.gz add-created-at |
|
||
- **APPWRITE_ENDPOINT** - Your Appwrite Project Endpoint (can be found at `settings` tab on your Appwrite console) | ||
- **APPWRITE_API_KEY** - Your Appwrite Project API Keys (can be found at `API Keys` tab on your Appwrite console) | ||
- **APPWRITE_FUNCTION_PROJECT_ID** - Your Appwrite Project ID (can be found at `settings` tab on your Appwrite console) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **APPWRITE_FUNCTION_PROJECT_ID** - Your Appwrite Project ID (can be found at `settings` tab on your Appwrite console) |
You can remove this env variable. This is automatically passed to the cloud function
@rafaeelaudibert closing this PR for now. Feel free to reopen it / create a new one when you're ready to start working on it once again |
When a document in any collection is created, this function will fill the
createdAt
attribute with the current time, if this rule forcreatedAt
is configured on a specific collection.