You've already forked obsidian-visualiser
Progressing on profile edition and thumbnail cropping
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import useDatabase from "~/composables/useDatabase";
|
||||
import type { Comment } from "~/types/auth";
|
||||
import type { CommentSearch } from "~/types/api";
|
||||
|
||||
export default defineEventHandler((e) => {
|
||||
const id = getRouterParam(e, 'id');
|
||||
@@ -12,5 +12,5 @@ export default defineEventHandler((e) => {
|
||||
|
||||
const db = useDatabase();
|
||||
|
||||
return db.query(`SELECT * FROM explorer_comments WHERE user_id = ?1`).all(id) as Comment[];
|
||||
return db.query(`SELECT * FROM explorer_comments WHERE user_id = ?1`).all(id) as CommentSearch[];
|
||||
});
|
||||
Reference in New Issue
Block a user