fix type
This commit is contained in:
parent
14b16b4733
commit
539cf811ec
|
@ -39,9 +39,7 @@ export type INote = {
|
|||
replyId: mongo.ObjectID;
|
||||
renoteId: mongo.ObjectID;
|
||||
poll: {
|
||||
choices: Array<{
|
||||
id: number;
|
||||
}>
|
||||
choices: choice[]
|
||||
};
|
||||
text: string;
|
||||
tags: string[];
|
||||
|
@ -102,6 +100,12 @@ export type INote = {
|
|||
_files?: IDriveFile[];
|
||||
};
|
||||
|
||||
export type choice = {
|
||||
id: number;
|
||||
text: string;
|
||||
votes: number;
|
||||
};
|
||||
|
||||
export const hideNote = async (packedNote: any, meId: mongo.ObjectID) => {
|
||||
let hide = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue