(rows: readonly CoreRow<"plugin_storage">[])
| 1558 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 1559 | |
| 1560 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 1561 | [...rows].sort((left, right) => { |
| 1562 | const l = ownerRank(left.owner as Owner); |
| 1563 | const r = ownerRank(right.owner as Owner); |
| 1564 | return l - r || left.key.localeCompare(right.key); |
| 1565 | }); |
| 1566 | |
| 1567 | const getVisible = <T>(collection: string, key: string) => |
| 1568 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected