[fix] update queue and tenant with same code error (#10877)
in ae6aa53f I use the same logic test to create or update tenant and queue which failed create with the same value, this patch will fix it. and also I use the constructor to reduce the new object logic here
Showing