greenlock.manager.remove({subject}) doesn't work #56
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
 
			
greenlock.manager.remove({subject}) doesn't work, it never finds a site bysubject`.npx greenlock remove --subjecthas the same problem.I've tried debugging and this is what I came up with:
In
https://git.coolaj86.com/coolaj86/greenlock.js/src/branch/master/lib/manager-wrapper.js#L203
the public manager api is exposed. The remove function expects {subject}, it checks and refuses to take
servernameoraltname.The remove function in the wrapper calls the merged
removefunction, which callsmega.get:https://git.coolaj86.com/coolaj86/greenlock.js/src/branch/master/lib/manager-wrapper.js#L475
The opts to
mega.removeat this time are{subject}.mega.gethowever, uses{servername, wildname}.A workaround is to use
greenlock.manager.set({subject, deletedAt: Date.now()})