Skip to content

Commit c447e26

Browse files
committed
chore: pr feedback
1 parent bd192bd commit c447e26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/stack/src/schema/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class EncryptedField {
152152
* a different type so the encryption layer knows how to encode the plaintext
153153
* before encrypting.
154154
*
155-
* @param castAs - The plaintext data type: `'string'`, `'number'`, `'boolean'`, `'date'`, `'bigint'`, or `'json'`.
155+
* @param castAs - The plaintext data type: `'string'`, `'number'`, `'boolean'`, `'date'`, `'text'`, `'bigint'`, or `'json'`.
156156
* @returns This `EncryptedField` instance for method chaining.
157157
*
158158
* @example
@@ -163,7 +163,7 @@ export class EncryptedField {
163163
* ```
164164
*/
165165
dataType(castAs: CastAs) {
166-
this.castAsValue = castAs === 'string' ? 'text' : castAs
166+
this.castAsValue = castAs
167167
return this
168168
}
169169

@@ -212,7 +212,7 @@ export class EncryptedColumn {
212212
* ```
213213
*/
214214
dataType(castAs: CastAs) {
215-
this.castAsValue = castAs === 'string' ? 'text' : castAs
215+
this.castAsValue = castAs
216216
return this
217217
}
218218

0 commit comments

Comments
 (0)