Skip to content

Commit

Permalink
filter feePaid judgements
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem committed Jun 28, 2024
1 parent 0a47dc2 commit 24bff1c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ const migrateIdentity = async (key, data, api) => {
}
});

let judgements = [];
decodedJson.judgements.forEach((judgement) => {
if (!('feePaid' in judgement[1])) {
judgements.push(judgement);
}
});

// Migrate `IdentityInfo` data to the new format:
// - remove `additional` field
// - add `discord` field
Expand All @@ -68,7 +75,7 @@ const migrateIdentity = async (key, data, api) => {
'(RegistrationNew, Option<Username>)',
[
{
judgements: decodedJson.judgements,
judgements: judgements,
deposit: 0,
info: {
display: decodedJson.info.display,
Expand Down

0 comments on commit 24bff1c

Please sign in to comment.