summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/ClipService.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core/ClipService.ts')
-rw-r--r--packages/backend/src/core/ClipService.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/ClipService.ts b/packages/backend/src/core/ClipService.ts
index bb8be26ce6..9fd1ebad87 100644
--- a/packages/backend/src/core/ClipService.ts
+++ b/packages/backend/src/core/ClipService.ts
@@ -45,13 +45,13 @@ export class ClipService {
throw new ClipService.TooManyClipsError();
}
- const clip = await this.clipsRepository.insert({
+ const clip = await this.clipsRepository.insertOne({
id: this.idService.gen(),
userId: me.id,
name: name,
isPublic: isPublic,
description: description,
- }).then(x => this.clipsRepository.findOneByOrFail(x.identifiers[0]));
+ });
return clip;
}