(rows: readonly CoreRow<"plugin_storage">[])
| 1186 | const ownerRank = (owner: Owner): number => readOwners.indexOf(owner); |
| 1187 | |
| 1188 | const sortByOwnerPrecedence = (rows: readonly CoreRow<"plugin_storage">[]) => |
| 1189 | [...rows].sort((left, right) => { |
| 1190 | const l = ownerRank(left.owner as Owner); |
| 1191 | const r = ownerRank(right.owner as Owner); |
| 1192 | return l - r || left.key.localeCompare(right.key); |
| 1193 | }); |
| 1194 | |
| 1195 | const getVisible = <T>(collection: string, key: string) => |
| 1196 | input.core.findMany("plugin_storage", { where: whereFor(collection, key) }).pipe( |
no test coverage detected