refactor: get database writing model

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2024-02-20 20:15:36 +08:00
parent 6ed5e40fa1
commit aeb85099b5
16 changed files with 144 additions and 117 deletions

View File

@@ -33,7 +33,7 @@ export class ActivityController<ResponseWrapper> implements IController {
likeIt(type: 'Post' | 'Note', id: string) {
return this.proxy.like.post<never>({
data: {
type,
type: type.toLowerCase(),
id,
},
})