Skip to content
Snippets Groups Projects
Commit f25777f2 authored by syuilo's avatar syuilo
Browse files

refactor(server): use insert instead of save

parent 6be1db00
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,11 @@ export async function getRelayActor(): Promise<ILocalUser> {
}
export async function addRelay(inbox: string) {
const relay = await Relays.save({
const relay = await Relays.insert({
id: genId(),
inbox,
status: 'requesting',
});
}).then(x => Relays.findOneOrFail(x.identifiers[0]));
const relayActor = await getRelayActor();
const follow = await renderFollowRelay(relay, relayActor);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment