@merkl/api 0.13.9 → 0.13.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,6 +33,9 @@ export class BlacklistRepository {
33
33
  return true;
34
34
  }
35
35
  static async add(x) {
36
+ if (!!(await apiDbClient.blacklist.findUnique({ where: { id: x.id } }))) {
37
+ await apiDbClient.blacklist.delete({ where: { id: x.id } });
38
+ }
36
39
  return await apiDbClient.blacklist.create({
37
40
  data: {
38
41
  id: x.id,