Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 5cdb552

Browse files
author
noah
committed
Fix the bugs
1 parent 382dd87 commit 5cdb552

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: internal/interactor/perm.go

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ type PermInteractor struct {
3434

3535
// ResyncPerms delete all permissions not included in the organization entries.
3636
func (i *PermInteractor) ResyncPerms(ctx context.Context) error {
37+
if i.orgEntries == nil {
38+
i.log.Debug("Skip to resync perms, the organization entries is emtpy.")
39+
return nil
40+
}
41+
3742
const perPage = 100
3843

3944
page := 1

0 commit comments

Comments
 (0)