Finished Hub ESLINT rule enforcement
This commit is contained in:
@@ -6,8 +6,8 @@ export const addMessage = async (notam: Prisma.ConfigCreateInput) => {
|
||||
await prisma.config.create({
|
||||
data: notam,
|
||||
});
|
||||
} catch (error) {
|
||||
throw new Error("Failed to add message");
|
||||
} catch (e) {
|
||||
throw new Error(`Failed to add message: ${e instanceof Error ? e.message : "Unknown error"}`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -16,7 +16,7 @@ export const disableMessage = async () => {
|
||||
await prisma.config.create({
|
||||
data: {},
|
||||
});
|
||||
} catch (error) {
|
||||
throw new Error("Failed to disable message");
|
||||
} catch (e) {
|
||||
throw new Error(`Failed to add message: ${e instanceof Error ? e.message : "Unknown error"}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user