chore: Add eslint rule for object shorthand (#3955)

This commit is contained in:
Tom Moor
2022-08-11 13:18:14 +01:00
committed by GitHub
parent 7eaa8eb961
commit 1d242d44b1
17 changed files with 19 additions and 18 deletions

View File

@@ -31,7 +31,7 @@ import NotContainsUrl from "./validators/NotContainsUrl";
tableName: "groups",
modelName: "group",
validate: {
isUniqueNameInTeam: async function () {
async isUniqueNameInTeam() {
const foundItem = await Group.findOne({
where: {
teamId: this.teamId,