api result 부분 수정

This commit is contained in:
2025-05-15 17:43:20 +09:00
parent ce2f3db35c
commit d219a128bc
3 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ export const BlackListDelete = async (token, params) => {
data: { list: params }, data: { list: params },
}); });
return res; return res.data;
} catch (e) { } catch (e) {
if (e instanceof Error) { if (e instanceof Error) {
throw new Error('BlackListDelete', e); throw new Error('BlackListDelete', e);

View File

@@ -58,7 +58,7 @@ export const EventModify = async (token, id, params) => {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}); });
return res.data.data.list; return res.data;
} catch (e) { } catch (e) {
if (e instanceof Error) { if (e instanceof Error) {
throw new Error('EventModify Error', e); throw new Error('EventModify Error', e);

View File

@@ -72,7 +72,7 @@ export const MailModify = async (token, id, params) => {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}); });
return res.data.data.list; return res.data;
} catch (e) { } catch (e) {
if (e instanceof Error) { if (e instanceof Error) {
throw new Error('MailModify Error', e); throw new Error('MailModify Error', e);
@@ -88,7 +88,7 @@ export const MailDelete = async (token, params, id) => {
data: { list: params }, data: { list: params },
}); });
return res.data.data.list; return res.data;
} catch (e) { } catch (e) {
if (e instanceof Error) { if (e instanceof Error) {
throw new Error('MailDelete Error', e); throw new Error('MailDelete Error', e);
@@ -147,7 +147,7 @@ export const MailIsItem = async (token, params) => {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}); });
return res; return res.data;
} catch (e) { } catch (e) {
if (e instanceof Error) { if (e instanceof Error) {
throw new Error('MailItemCheck Error', e); throw new Error('MailItemCheck Error', e);