mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 23:51:01 -07:00
Refactor
This commit is contained in:
parent
2f4ce6c4d8
commit
889c9afbb5
1 changed files with 2 additions and 2 deletions
|
@ -36,7 +36,7 @@ class Creator {
|
||||||
return createRemoteUserObject('driveFiles.files', _id, object);
|
return createRemoteUserObject('driveFiles.files', _id, object);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async createNote(resolver, object) {
|
private async createNote(resolver: Resolver, object) {
|
||||||
if ('attributedTo' in object && this.actor.account.uri !== object.attributedTo) {
|
if ('attributedTo' in object && this.actor.account.uri !== object.attributedTo) {
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ class Creator {
|
||||||
return promisedRemoteUserObject;
|
return promisedRemoteUserObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async create(parentResolver, value): Promise<Array<Promise<IRemoteUserObject>>> {
|
public async create(parentResolver: Resolver, value): Promise<Array<Promise<IRemoteUserObject>>> {
|
||||||
const collection = await parentResolver.resolveCollection(value);
|
const collection = await parentResolver.resolveCollection(value);
|
||||||
|
|
||||||
return collection.object.map(async element => {
|
return collection.object.map(async element => {
|
||||||
|
|
Loading…
Reference in a new issue