chore: formatting
This commit is contained in:
parent
cb73e277e9
commit
a7c523ee46
@ -81,7 +81,7 @@ export async function importPosts(
|
|||||||
} else if (parsed instanceof Object) {
|
} else if (parsed instanceof Object) {
|
||||||
logger.info("Parsing animal style posts");
|
logger.info("Parsing animal style posts");
|
||||||
for (const post of parsed.orderedItems) {
|
for (const post of parsed.orderedItems) {
|
||||||
async () =>{
|
async () => {
|
||||||
try {
|
try {
|
||||||
linenum++;
|
linenum++;
|
||||||
let reply: Note | null = null;
|
let reply: Note | null = null;
|
||||||
@ -103,7 +103,7 @@ export async function importPosts(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
logger.info(`Posting[${linenum}] ...`);
|
logger.info(`Posting[${linenum}] ...`);
|
||||||
|
|
||||||
const note = await create(user, {
|
const note = await create(user, {
|
||||||
createdAt: new Date(post.object.published),
|
createdAt: new Date(post.object.published),
|
||||||
files: undefined,
|
files: undefined,
|
||||||
@ -123,7 +123,7 @@ export async function importPosts(
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.warn(`Error in line:${linenum} ${e}`);
|
logger.warn(`Error in line:${linenum} ${e}`);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user