fix(plugins/achievements): packager achievement not unlocked with packages from ghcr.io (#1074)

This commit is contained in:
Simon Lecoq
2022-05-25 05:52:58 +02:00
committed by GitHub
parent e3a59b7c97
commit c0a977bee0
3 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
import * as compute from "./list/index.mjs"
//Setup
export default async function({login, q, imports, data, computed, graphql, queries, account}, {enabled = false} = {}) {
export default async function({login, q, imports, data, computed, graphql, queries, rest, account}, {enabled = false} = {}) {
//Plugin execution
try {
//Check if plugin is enabled and requirements are met
@@ -15,7 +15,7 @@ export default async function({login, q, imports, data, computed, graphql, queri
//Initialization
const list = []
await total({imports})
await compute[account]({list, login, data, computed, imports, graphql, queries, rank, leaderboard})
await compute[account]({list, login, data, computed, imports, graphql, queries, rest, rank, leaderboard})
//Results
const order = {S: 5, A: 4, B: 3, C: 2, $: 1, X: 0}