mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: logs
This commit is contained in:
parent
6ea91315c3
commit
4a71c1950f
5
src/cache/adapters/limited.ts
vendored
5
src/cache/adapters/limited.ts
vendored
@ -230,16 +230,11 @@ export class LimitedMemoryAdapter implements Adapter {
|
|||||||
|
|
||||||
removeToRelationship(to: string, keys: string | string[]) {
|
removeToRelationship(to: string, keys: string | string[]) {
|
||||||
const data = this.getToRelationship(to);
|
const data = this.getToRelationship(to);
|
||||||
// console.log({ data, to })
|
|
||||||
if (data) {
|
if (data) {
|
||||||
for (const key of Array.isArray(keys) ? keys : [keys]) {
|
for (const key of Array.isArray(keys) ? keys : [keys]) {
|
||||||
// console.log(data, key, '????')
|
|
||||||
const idx = data.indexOf(key);
|
const idx = data.indexOf(key);
|
||||||
if (idx !== -1) {
|
if (idx !== -1) {
|
||||||
console.log('borrado');
|
|
||||||
data.splice(idx, 1);
|
data.splice(idx, 1);
|
||||||
} else {
|
|
||||||
console.log({ to, keys });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user