Update api.js

This commit is contained in:
LuChenQun 2021-08-04 09:26:00 +08:00 committed by GitHub
parent f2797f4bbf
commit 692ab124aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -212,7 +212,6 @@ module.exports = class extends Base {
bookmark.userId = this.ctx.state.user.id;
try {
let bookmarkFind = await this.model('bookmarks').where({ userId: this.ctx.state.user.id, url: bookmark.url }).find();
console.log("bookmarkFind", bookmarkFind, bookmark)
if (!think.isEmpty(bookmarkFind)) {
await this.model('bookmarks').where({
userId: this.ctx.state.user.id,