fix: workspace license deletes (#1595)

This commit is contained in:
Nikhil
2024-10-23 21:49:18 +05:30
committed by GitHub
parent fc2db7671b
commit 014cda40d2

View File

@@ -9,8 +9,8 @@ class Command(BaseCommand):
help = "Clear the workspace licenses on the start up"
def handle(self, *args, **options):
# Clear the workspace licenses
WorkspaceLicense.objects.all().delete()
# Hard Delete all workspace licenses
WorkspaceLicense.all_objects.all().delete()
self.stdout.write(
self.style.SUCCESS("Workspace licenses cleared successfully")
)