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.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/backend/src/core/ClipService.ts b/packages/backend/src/core/ClipService.ts
index 3d9982e80f..e94f1eb531 100644
--- a/packages/backend/src/core/ClipService.ts
+++ b/packages/backend/src/core/ClipService.ts
@@ -46,8 +46,7 @@ export class ClipService {
}
const clip = await this.clipsRepository.insert({
- id: this.idService.genId(),
- createdAt: new Date(),
+ id: this.idService.gen(),
userId: me.id,
name: name,
isPublic: isPublic,
@@ -109,7 +108,7 @@ export class ClipService {
try {
await this.clipNotesRepository.insert({
- id: this.idService.genId(),
+ id: this.idService.gen(),
noteId: noteId,
clipId: clip.id,
});