(rows: readonly CoreRow<"plugin_storage">[])
| 940 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 941 | |
| 942 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 943 | [...rows].sort((left, right) => { |
| 944 | const l = ownerRank(left.owner as Owner); |
| 945 | const r = ownerRank(right.owner as Owner); |
| 946 | return l - r || left.key.localeCompare(right.key); |
| 947 | }); |
| 948 | |
| 949 | const getVisible = <T>(collection: string, key: string) => |
| 950 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected