Fixing wrong change type on set
This commit is contained in:
@ -127,7 +127,7 @@ export class DocumentQuery extends Query {
|
||||
|
||||
const lock = await this.database.locks.lock(collection, document);
|
||||
|
||||
let isNew = await this.database.data.get(this.getKey(collection, document)).catch(resNull).then(e => e !== null);
|
||||
let isNew = !(await this.getDoc(collection, document))
|
||||
|
||||
return this.database.data
|
||||
.put(this.getKey(collection, document), encode(data))
|
||||
|
Reference in New Issue
Block a user