Skip to content

Commit

Permalink
chore: *
Browse files Browse the repository at this point in the history
  • Loading branch information
Seven Du committed Jul 28, 2024
1 parent 8573986 commit 3796e0a
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/orm/lib/src/runtime/json_protocol/serialize.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,6 @@ extension ModelActionToJsonQueryAction on dmmf.ModelAction {
}
}

// TODO: What's this?
//
// I wrote it myself, but I forgot why I wrote it and why it is not used.
//
// Maybe I need to re-verify the Prisma JSON protocol
//
// -----------------------------------
//
// extension on JsonQueryAction {
// String toApiFunctionName() {
// if (name.endsWith('One')) return name.substring(0, name.length - 3);

// return name;
// }
// }

extension<K, V> on Map<K, V> {
Map<K, V> withoutKeys(Iterable<K> keys) =>
Map.from(this)..removeWhere((k, _) => keys.contains(k));
Expand Down

0 comments on commit 3796e0a

Please sign in to comment.