Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat implement database cleaner node #238

Merged

Conversation

dishwasher-detergent
Copy link
Contributor

What does this PR do?

Deletes documents that fall outside of a specified retention period.

Test Plan

I have tested the function template in Appwrite Cloud, you can view that here

Related PRs and Issues

This PR is related to issue #226 and merging this PR closes that issue

Have you read the Contributing Guidelines on issues?

Yes I Have read the contributing guidelines

export function throwIfMissing(obj, keys) {
const missing = [];
for (let key of keys) {
if (!(key in obj) || obj[key] == null || obj[key] == undefined) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition here can just be !(key in obj) || obj[key] == null

@gewenyu99
Copy link

Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship.

Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag.

@dishwasher-detergent
Copy link
Contributor Author

Hey there! There were a lot of big PRs during this Hacktoberfest, and we wanted to give everyone ample time to collaborate with our engineering team. If you were able to merge your PRs during October, amazing. If it’s still not merged, don’t worry about it either. Either way, we’ve got your Hacktoberfest swag minted and ready to ship.

Please comment with your Discord username here so we can contact you about your shipping information to deliver your Hacktoberfest swag.

Hey! My discord name would be @kennethbass.com. (I am the mod Kenny) :)

@loks0n loks0n merged commit fe8bed5 into appwrite:main Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🚀 Feature: Add database cleaner templates
4 participants