-
Notifications
You must be signed in to change notification settings - Fork 107
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
Feat implement database cleaner node #238
Conversation
node/database-cleaner/src/utils.js
Outdated
export function throwIfMissing(obj, keys) { | ||
const missing = []; | ||
for (let key of keys) { | ||
if (!(key in obj) || obj[key] == null || obj[key] == undefined) { |
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.
The condition here can just be !(key in obj) || obj[key] == null
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) :) |
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