Skip to content

Commit 1a330fe

Browse files
committed
fix
1 parent 57d3dc7 commit 1a330fe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/gitpod-db/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Contains all the database related functionality, implemented using [typeorm](https://typeorm.io/).
44

5+
### Working on gitpod-protocol component
6+
When you are making changes to gitpod-protocol component, make sure to run `yarn build` in gitpod-protocol folder to make sure your changes will be rebuild. Also consider running `yarn watch` so that any changes are rebuilt in realtime.
7+
58
### Adding a new table
69
1. Create a [migration](./src/typeorm/migration/README.md) - use the [baseline](./src/typeorm/migration/1592203031938-Baseline.ts) as an exemplar
710
1. Create a new entity that implements the requisite interface or extend an existing entity as required - see [db-user.ts](./src/typeorm/entity/db-user.ts)

components/gitpod-db/src/typeorm/workspace-db-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export abstract class AbstractTypeORMWorkspaceDBImpl implements WorkspaceDB {
713713

714714
public async storeVolumeSnapshot(volumeSnapshot: VolumeSnapshot): Promise<VolumeSnapshot> {
715715
const volumeSnapshots = await this.getVolumeSnapshotRepo();
716-
const dbVolumeSnapshot = volumeSnapshots as DBVolumeSnapshot;
716+
const dbVolumeSnapshot = volumeSnapshot as DBVolumeSnapshot;
717717
return await volumeSnapshots.save(dbVolumeSnapshot);
718718
}
719719

0 commit comments

Comments
 (0)