mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 13:27:46 +00:00
Fix backend linter issue as well
This commit is contained in:
@@ -58,19 +58,14 @@ export const MySQLAccountSchema = BasePamAccountSchema.extend({
|
|||||||
credentials: MySQLAccountCredentialsSchema
|
credentials: MySQLAccountCredentialsSchema
|
||||||
});
|
});
|
||||||
|
|
||||||
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.omit({
|
export const CreateMySQLAccountSchema = BaseCreatePamAccountSchema.extend({
|
||||||
// We don't support pwd rotation for mysql yet
|
credentials: MySQLAccountCredentialsSchema,
|
||||||
rotationEnabled: true,
|
//We don't support pwd rotation for mysql yet
|
||||||
rotationIntervalSeconds: true
|
rotationEnabled: z.boolean().optional(),
|
||||||
}).extend({
|
rotationIntervalSeconds: z.number().optional()
|
||||||
credentials: MySQLAccountCredentialsSchema
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.omit({
|
export const UpdateMySQLAccountSchema = BaseUpdatePamAccountSchema.extend({
|
||||||
// We don't support pwd rotation for mysql yet
|
|
||||||
rotationEnabled: true,
|
|
||||||
rotationIntervalSeconds: true
|
|
||||||
}).extend({
|
|
||||||
credentials: MySQLAccountCredentialsSchema.optional()
|
credentials: MySQLAccountCredentialsSchema.optional()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user