core: change db keys to include collection name

This should not affect the items or their server representation.
This change is necessary to allow multiple items with same id
that live in different collections.
For example, shortcuts have the same id as the inner reference they
point to. This was not possible before and would cause an overwrite
of the original value.
This commit is contained in:
Abdullah Atta
2022-10-12 10:47:18 +05:00
committed by Abdullah Atta
parent c09715d053
commit 0e6150a0f5
3 changed files with 50 additions and 8 deletions

View File

@@ -20,8 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import { randomBytes } from "../utils/random";
export default class Storage {
constructor(context) {
this.storage = context;
constructor(storage) {
this.storage = storage;
}
write(key, data) {