lint, tsc

This commit is contained in:
Tom Moor
2021-12-11 12:48:13 -08:00
parent ca0a900c21
commit 19e85c63c2
48 changed files with 118 additions and 339 deletions

View File

@@ -79,7 +79,7 @@ Group.associate = (models) => {
// Cascade deletes to group and collection relations
// @ts-expect-error ts-migrate(7006) FIXME: Parameter 'group' implicitly has an 'any' type.
Group.addHook("afterDestroy", async (group, options) => {
Group.addHook("afterDestroy", async (group) => {
if (!group.deletedAt) return;
await GroupUser.destroy({
where: {