refactor: update tag management with improved validation and device integration
This commit is contained in:
@@ -6,8 +6,6 @@ const getAllTag = async (queryParams) => {
|
||||
method: 'get',
|
||||
prefix: `tags?${queryParams.toString()}`,
|
||||
});
|
||||
console.log('getAllTag response:', response);
|
||||
console.log('Query params:', queryParams.toString());
|
||||
|
||||
// Check if response has error
|
||||
if (response.error) {
|
||||
@@ -106,8 +104,6 @@ const createTag = async (queryParams) => {
|
||||
prefix: `tags`,
|
||||
params: queryParams,
|
||||
});
|
||||
console.log('createTag full response:', response);
|
||||
console.log('createTag payload sent:', queryParams);
|
||||
|
||||
// Check if response has error flag
|
||||
if (response.error) {
|
||||
@@ -134,8 +130,6 @@ const updateTag = async (tag_id, queryParams) => {
|
||||
prefix: `tags/${tag_id}`,
|
||||
params: queryParams,
|
||||
});
|
||||
console.log('updateTag full response:', response);
|
||||
console.log('updateTag payload sent:', queryParams);
|
||||
|
||||
// Check if response has error flag
|
||||
if (response.error) {
|
||||
@@ -161,7 +155,6 @@ const deleteTag = async (queryParams) => {
|
||||
method: 'delete',
|
||||
prefix: `tags/${queryParams}`,
|
||||
});
|
||||
console.log('deleteTag full response:', response);
|
||||
|
||||
// Check if response has error flag
|
||||
if (response.error) {
|
||||
|
||||
Reference in New Issue
Block a user