Merge pull request #1325 from makeplane/uat

release: v24.10.03-1
This commit is contained in:
sriram veeraghanta
2024-10-03 15:11:21 +05:30
committed by GitHub
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Django imports
from django.core.management import BaseCommand
# Module imports
from plane.payment.bgtasks.member_sync_task import member_sync_task
class Command(BaseCommand):
help = "Sync the license user for a workspace with the payment server"
def handle(self, *args, **options):
# Get the slug of the workspace
workspace_slug = input("Enter the workspace slug: ")
# Trigger the member sync task with the workspace slug
member_sync_task.delay(workspace_slug)
# Print the success message
self.stdout.write(
self.style.SUCCESS(
f"Successfully triggered the member sync task for workspace: {workspace_slug}"
)
)
return