deleteMemberDataOld static method

Future<void> deleteMemberDataOld(
  1. MemberModel member,
  2. String? appId,
  3. String? subject,
  4. String? from,
  5. String? message,
  6. List<MemberCollectionInfo> memberCollectionInfo,
)

Implementation

static Future<void> deleteMemberDataOld(
    MemberModel member,
    String? appId,
    String? subject,
    String? from,
    String? message,
    List<MemberCollectionInfo> memberCollectionInfo) async {
  var deleteMemberData =
      FirebaseFunctions.instance.httpsCallable('deleteMemberData');
  await deleteMemberData.call(<String, dynamic>{
    'appId': appId,
    'subject': subject,
    'from': from,
    'message': message,
    'collections': _toFunctionFormat(memberCollectionInfo)
  });
  memberRepository()!.delete(member);
}