public async toLegacyCollaborators()

in src/utils/adapter/adapter.ts [175:188]


    public async toLegacyCollaborators(
        userList: adapterTypes.UserProfile[],
        appOwner: string,
    ): Promise<sdkTypes.CollaboratorMap> {
        const callingUser = await this.getUser();
        const legacyCollaborators: sdkTypes.CollaboratorMap = {};
        userList.forEach((user) => {
            legacyCollaborators[user.email] = {
                isCurrentAccount: callingUser.email === user.email,
                permission: this.toLegacyUserPermission(user.permissions[0], user.name && user.name === appOwner)
            };
        });
        return legacyCollaborators;
    }