Skip to content

Commit 5be7417

Browse files
author
freshteapot
committed
tiny fixups
1 parent 0c34c0a commit 5be7417

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

Samples/Tutorials/Embeddings/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const client = Client
3939
.forTenant(TenantId.development)
4040
.delete(Employee, updatedEmployee.name);
4141
console.log(`Deleted ${updatedEmployee.name}`);
42+
4243
await client.embeddings
4344
.forTenant(TenantId.development)
4445
.getKeys(Employee);

Source/embeddings/Embedding.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
import { Guid } from '@dolittle/rudiments';
5-
import { EmbeddingId, EmbeddingStore } from '@dolittle/sdk.embeddings';
6-
import { CurrentState, IConvertProjectionsToSDK, IProjectionAssociations, Key, ProjectionsToSDKConverter } from '@dolittle/sdk.projections';
5+
import { EmbeddingId } from '@dolittle/sdk.embeddings';
6+
import { CurrentState, IConvertProjectionsToSDK, IProjectionAssociations, Key } from '@dolittle/sdk.projections';
77
import { Cancellation } from '@dolittle/sdk.resilience';
88
import { Constructor } from '@dolittle/types';
99
import { map } from 'rxjs/operators';

Source/embeddings/Internal/EmbeddingDeleteMethodFailed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export class EmbeddingDeleteMethodFailed<T> extends Exception {
1414
* @param {Error} error
1515
*/
1616
constructor(embeddingId: EmbeddingId, currentState: T, context: EmbeddingContext, error: Error) {
17-
super(`The delete method on embedding ${embeddingId} failed to delete key ${context.key}.\nCurrent state: ${JSON.stringify(currentState)}\nThe error was: ${error}`);
17+
super(`The delete method on embedding ${embeddingId} failed to delete key ${context.key}. Current state: ${JSON.stringify(currentState)}. The error was: ${error}`);
1818
}
1919
}

Source/embeddings/Internal/EmbeddingUpdateMethodFailed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export class EmbeddingUpdateMethodFailed<T> extends Exception {
1515
* @param {Error} error
1616
*/
1717
constructor(embeddingId: EmbeddingId, receivedState: T, currentState: T, context: EmbeddingContext, error: Error) {
18-
super(`The update method on embedding ${embeddingId} failed to update read model with key ${context.key}.\nReceived state: ${JSON.stringify(receivedState)}\mCurrent state: ${JSON.stringify(currentState)}\nThe error was: ${error}`);
18+
super(`The update method on embedding ${embeddingId} failed to update read model with key ${context.key}. Received state: ${JSON.stringify(receivedState)}. Current state: ${JSON.stringify(currentState)}The error was: ${error}`);
1919
}
2020
}

0 commit comments

Comments
 (0)