mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
refactor: use concrete type for mailpit helper
This commit is contained in:
@@ -23,7 +23,7 @@ export const MailpitHelper = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (response.ok()) {
|
if (response.ok()) {
|
||||||
const data = await response.json();
|
const data: { messages: MailpitMessage[] } = await response.json();
|
||||||
if (data.messages?.length > 0) {
|
if (data.messages?.length > 0) {
|
||||||
const msgId = data.messages[0].ID;
|
const msgId = data.messages[0].ID;
|
||||||
const detailRes = await requestContext.get(
|
const detailRes = await requestContext.get(
|
||||||
|
|||||||
Reference in New Issue
Block a user