fix(auth): proper logging for errors in role check
This commit is contained in:
@@ -35,10 +35,10 @@ export const areRolesIn = async () => {
|
|||||||
`${JSON.stringify(newRole)}, "Roles were just added due to missing them on server startup"`
|
`${JSON.stringify(newRole)}, "Roles were just added due to missing them on server startup"`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
createLog("error", "lst", "auth", "There was an error adding new roles to the db");
|
createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
createLog("error", "lst", "auth", "There was an error getting or adding new roles");
|
createLog("error", "lst", "auth", `There was an error adding new roles to the db, ${error}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user