From 8d365c6b74a77bb8872129396d62ebd6365d0566 Mon Sep 17 00:00:00 2001 From: seaerchin Date: Fri, 21 Oct 2022 15:13:34 +0800 Subject: [PATCH] chore(usersservice): update method name --- src/services/identity/UsersService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/identity/UsersService.ts b/src/services/identity/UsersService.ts index 3eb72dd09..d0ed99080 100644 --- a/src/services/identity/UsersService.ts +++ b/src/services/identity/UsersService.ts @@ -81,7 +81,7 @@ class UsersService { }) } - async isSiteAdmin(userId: string, siteName: string) { + async getSiteAdmin(userId: string, siteName: string) { return this.repository.findOne({ where: { id: userId, role: "ADMIN" }, include: [