rm old todo
This commit is contained in:
Vendored
-2
@@ -224,14 +224,12 @@ export class SafelinkClient {
|
|||||||
|
|
||||||
private async getCursor() {
|
private async getCursor() {
|
||||||
if (this.cursor === '') {
|
if (this.cursor === '') {
|
||||||
// TODO: catch err
|
|
||||||
const res = await this.db.db
|
const res = await this.db.db
|
||||||
.selectFrom('safelink_cursor')
|
.selectFrom('safelink_cursor')
|
||||||
.selectAll()
|
.selectAll()
|
||||||
.orderBy('createdAt', 'desc')
|
.orderBy('createdAt', 'desc')
|
||||||
.limit(1)
|
.limit(1)
|
||||||
.executeTakeFirst()
|
.executeTakeFirst()
|
||||||
|
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user