Update api.js
This commit is contained in:
parent
f2797f4bbf
commit
692ab124aa
|
|
@ -212,7 +212,6 @@ module.exports = class extends Base {
|
||||||
bookmark.userId = this.ctx.state.user.id;
|
bookmark.userId = this.ctx.state.user.id;
|
||||||
try {
|
try {
|
||||||
let bookmarkFind = await this.model('bookmarks').where({ userId: this.ctx.state.user.id, url: bookmark.url }).find();
|
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)) {
|
if (!think.isEmpty(bookmarkFind)) {
|
||||||
await this.model('bookmarks').where({
|
await this.model('bookmarks').where({
|
||||||
userId: this.ctx.state.user.id,
|
userId: this.ctx.state.user.id,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue